|
| 1 | +#ifndef Pins_Arduino_h |
| 2 | +#define Pins_Arduino_h |
| 3 | + |
| 4 | +#include <stdint.h> |
| 5 | +#include "soc/soc_caps.h" |
| 6 | + |
| 7 | +#define USB_VID 0x303a |
| 8 | +#define USB_PID 0x1001 |
| 9 | + |
| 10 | +static const uint8_t LED_BUILTIN = 21; |
| 11 | +#define BUILTIN_LED LED_BUILTIN // backward compatibility |
| 12 | +#define LED_BUILTIN LED_BUILTIN |
| 13 | + |
| 14 | +static const uint8_t TX = 43; |
| 15 | +static const uint8_t RX = 44; |
| 16 | + |
| 17 | +static const uint8_t SDA = 9; |
| 18 | +static const uint8_t SCL = 18; |
| 19 | + |
| 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; |
| 24 | + |
| 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 |
| 27 | + |
| 28 | +#define PIN_I2C_SDA SDA |
| 29 | +#define PIN_I2C_SCL SCL |
| 30 | +#define PIN_WS2812 12 |
| 31 | +#define X_WS2812_NUM_LEDS 5 |
| 32 | + |
| 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 |
| 38 | + |
| 39 | +#define PIN_SDCARD_CS SS |
| 40 | + |
| 41 | +#define PIN_JOY_X 1 |
| 42 | +#define PIN_JOY_Y 3 |
| 43 | + |
| 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 |
| 50 | + |
| 51 | +#define PIN_AUX 42 // Fri3d Badge 2024 Aux Pwr |
| 52 | + |
| 53 | +#define CHANNEL_BUZZER 0 |
| 54 | + |
| 55 | +// Fri3d Badge 2024 Accelero Gyro |
| 56 | +#define X_ACCELERO_GYRO 21 |
| 57 | + |
| 58 | +// I2S microphone on communicator addon |
| 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 |
| 63 | + |
| 64 | +// Fri3d Badge 2024 LCD |
| 65 | +// For using display with TFT_eSPI library |
| 66 | +#define USER_SETUP_LOADED |
| 67 | +#define SPI_FREQUENCY 80000000 |
| 68 | +#define ST7789_DRIVER |
| 69 | +#define USE_HSPI_PORT |
| 70 | + |
| 71 | +#define TFT_RGB_ORDER TFT_BGR //# swap red and blue byte order |
| 72 | +#define TFT_INVERSION_OFF |
| 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 |
| 82 | +#define LOAD_FONT2 |
| 83 | +#define LOAD_FONT4 |
| 84 | +#define LOAD_FONT6 |
| 85 | +#define LOAD_FONT7 |
| 86 | +#define LOAD_FONT8 |
| 87 | +#define LOAD_GFXFF |
| 88 | +#define SMOOTH_FONT |
| 89 | +#define SPI_FREQUENCY 80000000 |
| 90 | + |
| 91 | +static const uint8_t A0 = 1; |
| 92 | +static const uint8_t A1 = 2; |
| 93 | +static const uint8_t A2 = 3; |
| 94 | +static const uint8_t A3 = 4; |
| 95 | +static const uint8_t A4 = 5; |
| 96 | +static const uint8_t A5 = 6; |
| 97 | +static const uint8_t A6 = 7; |
| 98 | +static const uint8_t A7 = 8; |
| 99 | +static const uint8_t A8 = 9; |
| 100 | +static const uint8_t A9 = 10; |
| 101 | +static const uint8_t A10 = 11; |
| 102 | +static const uint8_t A11 = 12; |
| 103 | +static const uint8_t A12 = 13; |
| 104 | +static const uint8_t A13 = 14; |
| 105 | +static const uint8_t A14 = 15; |
| 106 | +static const uint8_t A15 = 16; |
| 107 | +static const uint8_t A16 = 17; |
| 108 | +static const uint8_t A17 = 18; |
| 109 | +static const uint8_t A18 = 19; |
| 110 | +static const uint8_t A19 = 20; |
| 111 | + |
| 112 | +static const uint8_t T1 = 1; |
| 113 | +static const uint8_t T2 = 2; |
| 114 | +static const uint8_t T3 = 3; |
| 115 | +static const uint8_t T4 = 4; |
| 116 | +static const uint8_t T5 = 5; |
| 117 | +static const uint8_t T6 = 6; |
| 118 | +static const uint8_t T7 = 7; |
| 119 | +static const uint8_t T8 = 8; |
| 120 | +static const uint8_t T9 = 9; |
| 121 | +static const uint8_t T10 = 10; |
| 122 | +static const uint8_t T11 = 11; |
| 123 | +static const uint8_t T12 = 12; |
| 124 | +static const uint8_t T13 = 13; |
| 125 | +static const uint8_t T14 = 14; |
| 126 | + |
| 127 | +#endif /* Pins_Arduino_h */ |
0 commit comments