Skip to content

Commit 23dbe11

Browse files
author
Francis Duvivier
committed
feat(3rd party board): add board specific defines
1 parent c72c63e commit 23dbe11

File tree

1 file changed

+35
-10
lines changed

1 file changed

+35
-10
lines changed

variants/fri3d_2024_esp32s3/pins_arduino.h

+35-10
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,42 @@ static const uint8_t MOSI = 6;
3535
static const uint8_t MISO = 8;
3636
static const uint8_t SCK = 7;
3737

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.
4849

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
4974

5075
static const uint8_t A0 = 1;
5176
static const uint8_t A1 = 2;

0 commit comments

Comments
 (0)