|
8 | 8 | #define USB_PID 0x1001
|
9 | 9 |
|
10 | 10 | static const uint8_t LED_BUILTIN = 21;
|
11 |
| -#define BUILTIN_LED LED_BUILTIN // backward compatibility |
| 11 | +#define BUILTIN_LED LED_BUILTIN // backward compatibility |
12 | 12 | #define LED_BUILTIN LED_BUILTIN
|
13 | 13 |
|
14 |
| - |
15 | 14 | static const uint8_t TX = 43;
|
16 | 15 | static const uint8_t RX = 44;
|
17 | 16 |
|
18 | 17 | static const uint8_t SDA = 9;
|
19 | 18 | static const uint8_t SCL = 18;
|
20 | 19 |
|
21 |
| -static const uint8_t SS = 14; |
22 |
| -static const uint8_t MOSI = 6; |
23 |
| -static const uint8_t MISO = 8; |
24 |
| -static const uint8_t SCK = 7; |
| 20 | +static const uint8_t SS = 14; |
| 21 | +static const uint8_t MOSI = 6; |
| 22 | +static const uint8_t MISO = 8; |
| 23 | +static const uint8_t SCK = 7; |
25 | 24 |
|
26 |
| -#define X_FRI3D_BADGE_2024 // General Define for use in sketches or lib files |
27 |
| -#define X_WS2812_NUM_LEDS 5 // Number of RBG LEDs |
| 25 | +#define X_FRI3D_BADGE_2024 // General Define for use in sketches or lib files |
| 26 | +#define X_WS2812_NUM_LEDS 5 // Number of RBG LEDs |
28 | 27 |
|
29 |
| -#define PIN_I2C_SDA SDA |
30 |
| -#define PIN_I2C_SCL SCL |
31 |
| -#define PIN_WS2812 12 |
| 28 | +#define PIN_I2C_SDA SDA |
| 29 | +#define PIN_I2C_SCL SCL |
| 30 | +#define PIN_WS2812 12 |
32 | 31 | #define X_WS2812_NUM_LEDS 5
|
33 | 32 |
|
34 |
| -#define PIN_LED 21 |
35 |
| -#define PIN_IR_RECEIVER 11 |
36 |
| -#define PIN_BLASTER 10 |
37 |
| -#define PIN_BUZZER 46 |
38 |
| -#define PIN_BATTERY 13 |
| 33 | +#define PIN_LED 21 |
| 34 | +#define PIN_IR_RECEIVER 11 |
| 35 | +#define PIN_BLASTER 10 |
| 36 | +#define PIN_BUZZER 46 |
| 37 | +#define PIN_BATTERY 13 |
39 | 38 |
|
40 |
| -#define PIN_SDCARD_CS SS |
| 39 | +#define PIN_SDCARD_CS SS |
41 | 40 |
|
42 |
| -#define PIN_JOY_X 1 |
43 |
| -#define PIN_JOY_Y 3 |
| 41 | +#define PIN_JOY_X 1 |
| 42 | +#define PIN_JOY_Y 3 |
44 | 43 |
|
45 |
| -#define PIN_A 39 |
46 |
| -#define PIN_B 40 |
47 |
| -#define PIN_X 38 |
48 |
| -#define PIN_Y 41 |
49 |
| -#define PIN_MENU 45 |
50 |
| -#define PIN_START 0 |
| 44 | +#define PIN_A 39 |
| 45 | +#define PIN_B 40 |
| 46 | +#define PIN_X 38 |
| 47 | +#define PIN_Y 41 |
| 48 | +#define PIN_MENU 45 |
| 49 | +#define PIN_START 0 |
51 | 50 |
|
52 |
| -#define PIN_AUX 42 // Fri3d Badge 2024 Aux Pwr |
| 51 | +#define PIN_AUX 42 // Fri3d Badge 2024 Aux Pwr |
53 | 52 |
|
54 | 53 | #define CHANNEL_BUZZER 0
|
55 | 54 |
|
56 | 55 | // Fri3d Badge 2024 Accelero Gyro
|
57 | 56 | #define X_ACCELERO_GYRO 21
|
58 | 57 |
|
59 | 58 | // I2S microphone on communicator addon
|
60 |
| -#define I2S_MIC_CHANNEL I2S_CHANNEL_FMT_ONLY_LEFT |
61 |
| -#define I2S_MIC_SERIAL_CLOCK 17 //serial clock SCLK: pin SCK |
62 |
| -#define I2S_MIC_LEFT_RIGHT_CLOCK 47 //left/right clock LRCK: pin WS |
63 |
| -#define I2S_MIC_SERIAL_DATA 15 //serial data DIN: pin SD |
64 |
| - |
| 59 | +#define I2S_MIC_CHANNEL I2S_CHANNEL_FMT_ONLY_LEFT |
| 60 | +#define I2S_MIC_SERIAL_CLOCK 17 //serial clock SCLK: pin SCK |
| 61 | +#define I2S_MIC_LEFT_RIGHT_CLOCK 47 //left/right clock LRCK: pin WS |
| 62 | +#define I2S_MIC_SERIAL_DATA 15 //serial data DIN: pin SD |
65 | 63 |
|
66 | 64 | // Fri3d Badge 2024 LCD
|
67 | 65 | // For using display with TFT_eSPI library
|
68 | 66 | #define USER_SETUP_LOADED
|
69 |
| -#define SPI_FREQUENCY 80000000 |
| 67 | +#define SPI_FREQUENCY 80000000 |
70 | 68 | #define ST7789_DRIVER
|
71 | 69 | #define USE_HSPI_PORT
|
72 | 70 |
|
73 |
| -#define TFT_RGB_ORDER TFT_BGR //# swap red and blue byte order |
| 71 | +#define TFT_RGB_ORDER TFT_BGR //# swap red and blue byte order |
74 | 72 | #define TFT_INVERSION_OFF
|
75 |
| -#define TFT_WIDTH 296 //;setting these will init the eSPI lib with correct dimensions |
76 |
| -#define TFT_HEIGHT 240 //;setting these will init the eSPI lib with correct dimensions |
77 |
| -#define TFT_MISO MISO |
78 |
| -#define TFT_MOSI MOSI |
79 |
| -#define TFT_SCLK SCK |
80 |
| -#define TFT_CS 5 |
81 |
| -#define TFT_DC 4 |
82 |
| -#define TFT_RST 48 |
83 |
| -#define LOAD_GLCD 1 |
| 73 | +#define TFT_WIDTH 296 //;setting these will init the eSPI lib with correct dimensions |
| 74 | +#define TFT_HEIGHT 240 //;setting these will init the eSPI lib with correct dimensions |
| 75 | +#define TFT_MISO MISO |
| 76 | +#define TFT_MOSI MOSI |
| 77 | +#define TFT_SCLK SCK |
| 78 | +#define TFT_CS 5 |
| 79 | +#define TFT_DC 4 |
| 80 | +#define TFT_RST 48 |
| 81 | +#define LOAD_GLCD 1 |
84 | 82 | #define LOAD_FONT2
|
85 | 83 | #define LOAD_FONT4
|
86 | 84 | #define LOAD_FONT6
|
|
0 commit comments