Current News

Moderator: Mmiscool

User avatar
By Mmiscool
#34138 Also I hope you did not miss the new CSS command to style all those gui widgets.
User avatar
By viscomjim
#34141 Used buttons to update value on oled. Works great. I did see the css. That is going to allow very cool pages now!

Can you give more details on the OTA operation?
User avatar
By Mmiscool
#34144 If your esp is connected to your network and you click the update button on the settings page it will attempt to fetch and install the latest firmware.

If your device is connected via a serial terminal you will see a msg about updating and if successful it will reboot.

Note: Will only work on esp-12 at the moment.

Give it a shot and see if its working.
User avatar
By matherp
#34197 Mike

I'm away from home so can't test at the moment but I've written SSD1306 drivers before. When you use a 1.3" display you need to add 2 to the x-coordinate before sending the cursor positioning command - I assume this is because they are wired differently. This means the driver needs to know if the user is using a 0.96" or 1.3" display in order to compensate correctly. This is the same for SPI and I2C wired displays. Attached my SPI code

Code: Select allvoid OLED_setxy(int x,int y,int onepointthree){
  if(onepointthree) x+=2;
  spi_write_command(0xB0+y)        ; //set page address
  spi_write_command(0x10 | ((x>>4) & 0x0F))  ; //set high col address
  spi_write_command(x & 0x0f)     ; //set low col address
}