ESP32_OLED_webradio
ESP32_OLED_webradio copied to clipboard
About SSD1306_Buffer Size
Hello. I found this code in app_main.c When without CONFIG_SSD1306_6432, the TFT resolution looks 128x64
#ifdef CONFIG_SSD1306_6432
#define XOFFSET 31
#define YOFFSET 32
#define WIDTH 64
#define HEIGHT 32
#else
#define WIDTH 128
#define HEIGHT 64
#define XOFFSET 0
#define YOFFSET 0
#endif
I found this code in ssd1306.h TFT buffer looks 132x64.
/* SSD1306 settings */
/* SSD1306 width in pixels */
#ifndef SSD1306_WIDTH
#define SSD1306_WIDTH 132 ----> 128??
#endif
/* SSD1306 LCD height in pixels */
#ifndef SSD1306_HEIGHT
#define SSD1306_HEIGHT 64
#endif
Why is SSD1306_WIDTH 132? ?