Skip to content

Commit 2a081ee

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 0ace444 commit 2a081ee

File tree

1 file changed

+40
-42
lines changed

1 file changed

+40
-42
lines changed

Diff for: variants/fri3d_2024_esp32s3/pins_arduino.h

+40-42
Original file line numberDiff line numberDiff line change
@@ -8,79 +8,77 @@
88
#define USB_PID 0x1001
99

1010
static const uint8_t LED_BUILTIN = 21;
11-
#define BUILTIN_LED LED_BUILTIN // backward compatibility
11+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
1212
#define LED_BUILTIN LED_BUILTIN
1313

14-
1514
static const uint8_t TX = 43;
1615
static const uint8_t RX = 44;
1716

1817
static const uint8_t SDA = 9;
1918
static const uint8_t SCL = 18;
2019

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;
2524

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
2827

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
3231
#define X_WS2812_NUM_LEDS 5
3332

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
3938

40-
#define PIN_SDCARD_CS SS
39+
#define PIN_SDCARD_CS SS
4140

42-
#define PIN_JOY_X 1
43-
#define PIN_JOY_Y 3
41+
#define PIN_JOY_X 1
42+
#define PIN_JOY_Y 3
4443

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
5150

52-
#define PIN_AUX 42 // Fri3d Badge 2024 Aux Pwr
51+
#define PIN_AUX 42 // Fri3d Badge 2024 Aux Pwr
5352

5453
#define CHANNEL_BUZZER 0
5554

5655
// Fri3d Badge 2024 Accelero Gyro
5756
#define X_ACCELERO_GYRO 21
5857

5958
// 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
6563

6664
// Fri3d Badge 2024 LCD
6765
// For using display with TFT_eSPI library
6866
#define USER_SETUP_LOADED
69-
#define SPI_FREQUENCY 80000000
67+
#define SPI_FREQUENCY 80000000
7068
#define ST7789_DRIVER
7169
#define USE_HSPI_PORT
7270

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
7472
#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
8482
#define LOAD_FONT2
8583
#define LOAD_FONT4
8684
#define LOAD_FONT6

0 commit comments

Comments
 (0)