Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About SSD1306_Buffer Size #21

Open
nopnop2002 opened this issue Nov 1, 2019 · 0 comments
Open

About SSD1306_Buffer Size #21

nopnop2002 opened this issue Nov 1, 2019 · 0 comments

Comments

@nopnop2002
Copy link

nopnop2002 commented Nov 1, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant