blockBreaker/blockBreaker.ino
2024-10-22 22:20:17 +13:00

25 lines
508 B
C++

#include <Arduino.h>
#include <SPI.h> //for screen
#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() {
//Screen setup
buf = (uint8_t *)malloc(u8g2.getBufferSize());
u8g2.setBufferPtr(buf);
u8g2.initDisplay();
u8g2.clearDisplay();
u8g2.setPowerSave(0);
}
//windows test re 2
//win test 2
void loop() {
// put your main code here, to run repeatedly:
}