acid-drop

- Hacking the planet from a LilyGo T-Deck using custom firmware
git clone git://git.acid.vegas/acid-drop.git
Log | Files | Refs | Archive | README | LICENSE

pins.h (1401B)

      1 #pragma once
      2 
      3 
      4 // Board pin definitions ------------------------
      5 #define BOARD_POWERON       10
      6 
      7 // Speaker
      8 #define BOARD_I2S_WS        5
      9 #define BOARD_I2S_DOUT      6
     10 #define BOARD_I2S_BCK       7
     11 
     12 #define BOARD_I2C_SDA       18
     13 #define BOARD_I2C_SCL       8
     14 
     15 #define BOARD_BAT_ADC       4
     16 
     17 #define BOARD_TOUCH_INT     16
     18 #define BOARD_KEYBOARD_INT  46
     19 
     20 #define BOARD_SDCARD_CS     39
     21 #define BOARD_TFT_CS        12
     22 #define RADIO_CS_PIN        9
     23 
     24 #define BOARD_TFT_DC        11
     25 #define BOARD_TFT_BACKLIGHT 42
     26 
     27 #define BOARD_SPI_MOSI      41
     28 #define BOARD_SPI_MISO      38
     29 #define BOARD_SPI_SCK       40
     30 
     31 #define BOARD_TBOX_G02      2
     32 #define BOARD_TBOX_G01      3
     33 #define BOARD_TBOX_G04      1
     34 #define BOARD_TBOX_G03      15
     35 
     36 #define BOARD_ES7210_MCLK   48
     37 #define BOARD_ES7210_LRCK   21
     38 #define BOARD_ES7210_SCK    47
     39 #define BOARD_ES7210_DIN    14
     40 
     41 #define RADIO_BUSY_PIN      13
     42 #define RADIO_RST_PIN       17
     43 #define RADIO_DIO1_PIN      45
     44 
     45 #define BOARD_BOOT_PIN      0
     46 
     47 #define BOARD_BL_PIN        42
     48 
     49 #define GPS_RX_PIN          44
     50 #define GPS_TX_PIN          43
     51 
     52 
     53 // Other definitions ----------------------------
     54 #define SCREEN_WIDTH  320
     55 #define SCREEN_HEIGHT 240
     56 
     57 // Battery definitions
     58 #define CONV_FACTOR 1.8 // Conversion factor for the ADC to voltage conversion
     59 #define READS       20  // Number of readings for averaging
     60 
     61 #define LILYGO_KB_SLAVE_ADDRESS 0x55
     62 
     63 #define RADIO_FREQ 903.0