mirror of
https://github.com/stevenhowes/MX5-Arduino-Speed.git
synced 2026-05-26 15:53:40 +01:00
Adjustments for new Adafruit init routine, and confirm working with Nano Every/ATMega4809. Also whitespace tweaks (thanks Arduino IDE)
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
|
||||
## Target Hardware
|
||||
|
||||
Arduino ATMega328p
|
||||
Arduino Nano ATMega328p
|
||||
Arduino Nano Every ATMega4809 (Register emulation not required)
|
||||
|
||||
2.42 Inch SS1309 128x64 Monocrhome OLED
|
||||
|
||||
|
||||
+2
-3
@@ -48,7 +48,7 @@ const unsigned char PROGMEM logo_bmp [] = {
|
||||
};
|
||||
|
||||
|
||||
Adafruit_SSD1306 display(OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);
|
||||
Adafruit_SSD1306 display(128, 64, OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);
|
||||
|
||||
// Boot graphics and screen refresh
|
||||
int prettylinecount = 64;
|
||||
@@ -93,7 +93,7 @@ void setup()
|
||||
Serial.setTimeout(10);
|
||||
Serial.println();
|
||||
Serial.println();
|
||||
Serial.println("---- stevehowes/MX5-Arduino-Speed ----");
|
||||
Serial.println("---- stevenhowes/MX5-Arduino-Speed ----");
|
||||
|
||||
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); //Initialize with the I2C address 0x3C.
|
||||
|
||||
@@ -360,4 +360,3 @@ void runmode()
|
||||
lastspeedstate = speedstate;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user