A pleasure, would love to see some pics of the system.
Glad to be of help.
Dans
Explore... Chat... Share...
Moderator: igrr
static void init_OLED(void) {
SendCommand( 0xAE ); // Set Display Off
SendCommand(0xD5); // Set Display Clock Divide Ratio\Oscilator Frequency
SendCommand(0x80); // the suggested ratio 0x80
SendCommand(0xA8); // Set Multiplex Ratio
SendCommand(0x3F);
SendCommand(0xD3); // Set Display Offset
SendCommand(0x00); // no offset
SendCommand(0x40); // Set Display Start Line
SendCommand(0x8D); // Set Charge Pump
SendCommand(0x14); // Vcc internal
SendCommand(0xA1); // Set Segment Re-Map
SendCommand(0xC8); // Set COM Output Scan Direction
SendCommand(0xDA); // Set COM Pins Hardware Configuration
SendCommand(0x12);
SendCommand(0x81); // Set Contrast Control
SendCommand(0xCF); // internal
SendCommand(0xD9); // Set Pre-Charge Period
SendCommand(0xF1); // internal
SendCommand(0xDB); // Set VCOMH Deselect Level
SendCommand(0x40);
SendCommand(0xA4); // Set Entire Display On/Off
SendCommand(0xA6); // Set Normal/Inverse Display
SendCommand( 0x2E ); // Deactivate Scroll
SendCommand( 0x20 ); // Set Memory Addressing Mode
SendCommand( 0x00 ); // Horizontal Addressing Mode
SendCommand( 0xAF ); // Set Display On
}
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]