[Arduino IDE demo source code for KC868-A6]--#06-OLED_SSD1306_code - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-A6 (https://www.kincony.com/forum/forumdisplay.php?fid=22) +--- Thread: [Arduino IDE demo source code for KC868-A6]--#06-OLED_SSD1306_code (/showthread.php?tid=1864) Pages:
1
2
|
[Arduino IDE demo source code for KC868-A6]--#06-OLED_SSD1306_code - KinCony Support - 04-25-2022 [Arduino IDE demo source code for KC868-A6]--#06-OLED_SSD1306_code Code: /*OLED SSD1306 Code for KC868-A6*/ 6.OLED-1306.zip (Size: 810 bytes / Downloads: 354) RE: [Arduino IDE demo source code for KC868-A6]--#06-OLED_SSD1306_code - Ignat - 01-30-2023 Hello! I tried to deal with OLED and digital inputs. Separately the OLED code and the inputs code work correctly. When I was trying to put the code at the same skecth it hasn't been worked properly. Code: #define U8x8_DO_NOT_SET_WIRE_CLOCK As far as I could understand the issue is related to the I2C bus and the u8g2lib. I found that the Wire.begin() and u8g2.begin() use SetClock. The SetClock issue resolved at the 2.33 version of the u8g2 library by U8x8_DO_NOT_SET_WIRE_CLOCK definition. In my case the definition has no effect. Please let me know what the way to use u8g2 library as wrotten at the thread beginning with the Wire object at the same time. RE: [Arduino IDE demo source code for KC868-A6]--#06-OLED_SSD1306_code - admin - 01-31-2023 sorry, i don't know this question, maybe can check on Google. RE: [Arduino IDE demo source code for KC868-A6]--#06-OLED_SSD1306_code - admin - 02-15-2023 SSD1306 and (relay) PCF8574 have not use same IIC address, so SSD1306 and relay can work simultaneously. we have already use KC868-A6 with tasmota firmware for ssd1306 and relay ON/OFF. so hardware is OK, now just software problem, sorry, i don't know the u8g2 library details. maybe you not need to use it or change to use another ssd1306 library. RE: [Arduino IDE demo source code for KC868-A6]--#06-OLED_SSD1306_code - sistemasyusa - 09-15-2024 Buen dia como puedo implementar esto para que cuando precione una entrada me indique en el display que salida preciono , no logro hacerlo [Arduino IDE demo source code for KC868-A6]--#06-OLED_SSD1306_code Code: /*OLED SSD1306 Code for KC868-A6*/ RE: [Arduino IDE demo source code for KC868-A6]--#06-OLED_SSD1306_code - admin - 09-15-2024 sorry, i don't understand your means. RE: [Arduino IDE demo source code for KC868-A6]--#06-OLED_SSD1306_code - sistemasyusa - 09-18-2024 (09-15-2024, 11:26 AM)admin Wrote: sorry, i don't understand your means. buen dia yo encontre la solucion y use mejor esta configuracion y la libreria SSD1306Wire #include "SSD1306Wire.h" // legacy include: `#include "SSD1306.h" // Initialize the OLED display using Wire library SSD1306Wire display(0x3c, 4, 15); // ADDRESS, SDA, SCL - SDA and SCL la otra da muchos problemas RE: [Arduino IDE demo source code for KC868-A6]--#06-OLED_SSD1306_code - admin - 09-18-2024 work well now? RE: [Arduino IDE demo source code for KC868-A6]--#06-OLED_SSD1306_code - sistemasyusa - 09-18-2024 Si funciona RE: [Arduino IDE demo source code for KC868-A6]--#06-OLED_SSD1306_code - Sunseeker24 - 10-30-2024 Can confirm the problem, u8g2 oled and pcf8574 digital inputs do not work when using them both together. Finally this lib solved the problem: arduino-cli lib install --git-url https://github.com/ThingPulse/esp8266-oled-ssd1306 |