@@ -35,17 +35,42 @@ static const uint8_t MOSI = 6;
35
35
static const uint8_t MISO = 8 ;
36
36
static const uint8_t SCK = 7 ;
37
37
38
- #define BOARD_HAS_SPI_LCD
39
- #define LCD_MODEL ST7789
40
- #define LCD_WIDTH 240
41
- #define LCD_HEIGHT 296
42
- #define LCD_MISO MISO
43
- #define LCD_DC 4 // Used to switch data and command status.
44
- #define LCD_CS 5 // used to enable LCD, low level to enable.
45
- #define LCD_CLK SCK // LCD SPI Clock.
46
- #define LCD_MOSI MOSI // LCD SPI MOSI.
47
- #define LCD_RST 48 // used to reset LCD, low level to reset.
38
+ // Fri3d Badge 2024 LCD
39
+ #define X_BOARD_HAS_SPI_LCD
40
+ #define X_LCD_MODEL ST7789
41
+ #define X_LCD_WIDTH 240
42
+ #define X_LCD_HEIGHT 296
43
+ #define X_LCD_MISO MISO
44
+ #define X_LCD_DC 4
45
+ #define X_LCD_CS 5
46
+ #define X_LCD_CLK SCK // SCLK
47
+ #define X_LCD_MOSI MOSI
48
+ #define X_LCD_RST 48 // used to reset LCD, low level to reset.
48
49
50
+ // Fri3d Badge 2024 WS2812
51
+ #define X_WS2812_LED 12
52
+ #define X_BATTERY_MONITOR 13
53
+ #define X_BLASTER 10
54
+ #define X_BUZZER 46
55
+ #define X_IR_RECEIVER 11
56
+
57
+ // Fri3d Badge 2024 Buttons
58
+ #define X_BUTTON_A 39
59
+ #define X_BUTTON_B 40
60
+ #define X_BUTTON_X 38
61
+ #define X_BUTTON_Y 41
62
+ #define X_BUTTON_MENU 45
63
+ #define X_BUTTON_START 0
64
+
65
+ // Fri3d Badge 2024 Joystick
66
+ #define X_JOYSTICK_VERTICAL 3
67
+ #define X_JOYSTICK_HORIZONTAL 1
68
+
69
+ // Fri3d Badge 2024 Aux Pwr
70
+ #define X_AUX_PWR 42
71
+
72
+ // Fri3d Badge 2024 Accelero Gyro
73
+ #define X_ACCELERO_GYRO 21
49
74
50
75
static const uint8_t A0 = 1 ;
51
76
static const uint8_t A1 = 2 ;
0 commit comments