hello world fixed
This commit is contained in:
parent
aeed86ec09
commit
d5d0345dfe
1 changed files with 4 additions and 3 deletions
|
|
@ -5,16 +5,17 @@
|
||||||
|
|
||||||
//screen setup
|
//screen setup
|
||||||
U8G2_SH1106_128X64_NONAME_F_4W_HW_SPI u8g2(U8G2_R2, 17, 20, 21);
|
U8G2_SH1106_128X64_NONAME_F_4W_HW_SPI u8g2(U8G2_R2, 17, 20, 21);
|
||||||
uint8_t *buf;
|
//uint8_t *buf;
|
||||||
char outString[99];
|
char outString[99];
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
//Screen setup
|
//Screen setup
|
||||||
buf = (uint8_t *)malloc(u8g2.getBufferSize());
|
/* buf = (uint8_t *)malloc(u8g2.getBufferSize());
|
||||||
u8g2.setBufferPtr(buf);
|
u8g2.setBufferPtr(buf);
|
||||||
u8g2.initDisplay();
|
u8g2.initDisplay();
|
||||||
u8g2.clearDisplay();
|
u8g2.clearDisplay();
|
||||||
u8g2.setPowerSave(0);
|
u8g2.setPowerSave(0); */
|
||||||
|
u8g2.begin();
|
||||||
u8g2.setFont(u8g2_font_ncenB14_tr);
|
u8g2.setFont(u8g2_font_ncenB14_tr);
|
||||||
|
|
||||||
u8g2.clearBuffer();
|
u8g2.clearBuffer();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue