started screen setup
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user