Hi there, sorry for the late reply, I was getting the startup screen. After an update, I'm getting nothing. I've started to look at redoing it from scratch and I'm now getting an error when compiling the code in the Arduino IDE This is what I'm getting:
Code: Select all
Arduino: 1.8.13 (Windows 10), Board: "WEMOS LOLIN32, 80MHz, Default, 240MHz (WiFi/BT), 921600"
C:\Users\miiik\Documents\Arduino\mistertty2oled\MiSTer_SSD1322_USB\MiSTer_SSD1322_USB.ino: In function 'void oled_showScreenSaverPicture()':
MiSTer_SSD1322_USB:1076:52: error: a function-definition is not allowed here before '{' token
void oled_showSmallCorePicture(int xpos, int ypos) {
^
MiSTer_SSD1322_USB:1088:12: error: 'py' was not declared in this scope
for (py=0; py<DispHeight; py=py+2) {
^
MiSTer_SSD1322_USB:1089:14: error: 'px' was not declared in this scope
for (px=0; px<DispLineBytes1bpp; px++) {
^
MiSTer_SSD1322_USB:1090:11: error: 'b1' was not declared in this scope
b1=logoBin[px+py*DispLineBytes1bpp]; // Get Data Byte for 8 Pixels
^
MiSTer_SSD1322_USB:1091:16: error: 'i' was not declared in this scope
for (i=0; i<8; i=i+2){
^
MiSTer_SSD1322_USB:1093:30: error: 'xpos' was not declared in this scope
oled.drawPixel(xpos+x, ypos+y, SSD1322_WHITE); // Draw Pixel if "1"
^
MiSTer_SSD1322_USB:1093:38: error: 'ypos' was not declared in this scope
oled.drawPixel(xpos+x, ypos+y, SSD1322_WHITE); // Draw Pixel if "1"
^
MiSTer_SSD1322_USB:1096:30: error: 'xpos' was not declared in this scope
oled.drawPixel(xpos+x, ypos+y, SSD1322_BLACK); // Clear Pixel if "0"
^
MiSTer_SSD1322_USB:1096:38: error: 'ypos' was not declared in this scope
oled.drawPixel(xpos+x, ypos+y, SSD1322_BLACK); // Clear Pixel if "0"
^
MiSTer_SSD1322_USB:1114:12: error: 'py' was not declared in this scope
for (py=0; py<DispHeight; py=py+2) {
^
MiSTer_SSD1322_USB:1115:14: error: 'px' was not declared in this scope
for (px=0; px<DispLineBytes1bpp; px++) {
^
MiSTer_SSD1322_USB:1116:16: error: 'i' was not declared in this scope
for (i=0; i<4; i++) {
^
MiSTer_SSD1322_USB:1117:13: error: 'b1' was not declared in this scope
b1=logoBin[(px*4)+i+py*DispLineBytes4bpp]; // Get Data Byte 1 for 2 Pixels
^
MiSTer_SSD1322_USB:1118:13: error: 'b2' was not declared in this scope
b2=logoBin[(px*4)+i+(py+1)*DispLineBytes4bpp]; // Get Data Byte 2 for 2 Pixels
^
MiSTer_SSD1322_USB:1120:13: error: 'br' was not declared in this scope
br=round((((0xF0 & b1) >> 4) + (0x0F & b1) + ((0xF0 & b2) >> 4) + (0x0F & b2)) / 4); // rounding
^
MiSTer_SSD1322_USB:1121:28: error: 'xpos' was not declared in this scope
oled.drawPixel(xpos+x, ypos+y, br); // Draw only Pixel 1, Left Nibble
^
MiSTer_SSD1322_USB:1121:36: error: 'ypos' was not declared in this scope
oled.drawPixel(xpos+x, ypos+y, br); // Draw only Pixel 1, Left Nibble
^
MiSTer_SSD1322_USB:1144:36: error: a function-definition is not allowed here before '{' token
void oled_showSystemHardware(void) {
^
MiSTer_SSD1322_USB:2623:1: error: expected '}' at end of input
}
^
exit status 1
a function-definition is not allowed here before '{' token
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I haven't made any changes to the code and it just won't work. I have all the required libraries installed as it says on GitHub. Not sure what I was doing wrong.