ESP32_OLED_webradio icon indicating copy to clipboard operation
ESP32_OLED_webradio copied to clipboard

About SSD1306_Buffer Size

Open nopnop2002 opened this issue 6 years ago • 0 comments

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? ?

nopnop2002 avatar Nov 01 '19 04:11 nopnop2002