Skip to content

Commit 1e7b2a1

Browse files
committed
Adding firmware version to boot screen
1 parent 19cdfbb commit 1e7b2a1

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

firmware/OpenLCD/System_Functions.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,11 @@ void setupSplash()
238238
SerLCD.setCursor(0, 0); //First position, 1st row
239239
SerLCD.print("SparkFun OpenLCD");
240240
SerLCD.setCursor(0, 1); //First position, 2nd row
241-
SerLCD.print("Baud: ");
241+
SerLCD.print("v");
242+
SerLCD.print(firmwareVersionMajor);
243+
SerLCD.print(".");
244+
SerLCD.print(firmwareVersionMinor);
245+
SerLCD.print(" Baud: ");
242246

243247
//Read what the current UART speed is from EEPROM memory
244248
//Default is 9600

firmware/OpenLCD/settings.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,6 @@
1414
#define SIZE_JUMPER 8
1515
#define LCD_CONTRAST 9 //PWM
1616

17-
//These worked for v1 Xiamen protos
18-
/*#define LCD_RS A0
19-
#define LCD_RW A1
20-
#define LCD_EN A2
21-
#define LCD_D4 A3
22-
#define LCD_D5 2
23-
#define LCD_D6 3
24-
#define LCD_D7 4
25-
#define BL_RW 5 //PWM
26-
#define BL_G 6 //PWM
27-
#define BL_B 7
28-
#define SIZE_JUMPER 8
29-
#define LCD_CONTRAST 9 //PWM
30-
//#define BL_B 9 //PWM
31-
//#define SIZE_JUMPER 7
32-
*/
33-
3417
#define SPI_CS 10 //As a slave device CS pin must always be 10
3518
#define SPI_MOSI 11
3619
#define SPI_MISO 12

0 commit comments

Comments
 (0)