started screen setup
This commit is contained in:
parent
2e9013d422
commit
e97e702ba3
1 changed files with 10 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue