started screen setup

This commit is contained in:
Seth Samuel 2024-10-21 22:24:41 +13:00
parent 2e9013d422
commit e97e702ba3

View file

@ -3,10 +3,18 @@
#include <U8g2lib.h> //for screen
#include <stdlib.h>
//screen setup
U8G2_SH1106_128X64_NONAME_F_4W_HW_SPI u8g2(U8G2_R2, 17, 21, 20);
uint8_t *buf;
char outString[99];
void setup() {
// put your setup code here, to run once:
//Screen setup
buf = (uint8_t *)malloc(u8g2.getBufferSize());
u8g2.setBufferPtr(buf);
u8g2.initDisplay();
u8g2.clearDisplay();
u8g2.setPowerSave(0);
}
void loop() {