-
-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
344 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,198 @@ | ||
#include <FastLED.h> | ||
/** | ||
* SD Card | ||
* CS 13 | ||
* SCLK 11 | ||
* MOSI 09 | ||
* MISO 10 | ||
* | ||
* QWIIC 1 | ||
* SDA 8 | ||
* SCL 18 | ||
* | ||
* QWIIC 2 | ||
* TX 43 | ||
* RX 44 | ||
* | ||
* IR | ||
* EN 02 | ||
* RX 01 | ||
* | ||
* LORA | ||
* CS 12 | ||
* SCLK 11 | ||
* MOSI 9 | ||
* MISO 10 | ||
* GDO0 3 | ||
* GDO2 38 | ||
* SW1 47 | ||
* SW0 48 | ||
* | ||
* LCD | ||
* BL 21 | ||
* DC 16 | ||
* CS 41 | ||
* SCLK 11 | ||
* MOSI 9 | ||
* RES 40 | ||
* | ||
* RGB LED | ||
* DATA 14 | ||
* | ||
* Encoder | ||
* A 4 | ||
* B 5 | ||
* BUTTON 0 (BOOT) | ||
* | ||
* Mic | ||
* DATA 42 | ||
* CLK 49 | ||
* | ||
* PN532 | ||
* SCL 18 | ||
* SDA 8 | ||
* IRQ 17 | ||
* RF_RES 45 | ||
* | ||
* Speaker | ||
* BCLK 46 | ||
* WCLK 40 | ||
* DOUT 7 | ||
*/ | ||
// Lite Version | ||
// #define LITE_VERSION 1 | ||
|
||
// Main I2C Bus | ||
#define SPI_SS_PIN 8 | ||
#define SPI_MOSI_PIN 9 | ||
#define SPI_MISO_PIN 10 | ||
#define SPI_SCK_PIN 11 | ||
|
||
// Set Main I2C Bus | ||
#define GROVE_SDA 8 | ||
#define GROVE_SCL 18 | ||
|
||
// TFT_eSPI display | ||
#define ST7789_DRIVER 1 | ||
#define USER_SETUP_LOADED | ||
#define USE_HSPI_PORT | ||
#define SMOOTH_FONT | ||
#define TFT_INVERSION_ON | ||
#define TFT_WIDTH 170 | ||
#define TFT_HEIGHT 320 | ||
#define TFT_BL 21 | ||
#define TFT_MISO SPI_MISO_PIN | ||
#define TFT_MOSI SPI_MOSI_PIN | ||
#define TFT_SCLK SPI_SCK_PIN | ||
#define TFT_CS 41 | ||
#define TFT_DC 16 | ||
#define TFT_RST -1 | ||
#define TOUCH_CS -1 | ||
#define SPI_FREQUENCY 80000000 | ||
#define SPI_READ_FREQUENCY 20000000 | ||
#define SPI_TOUCH_FREQUENCY 2500000 | ||
|
||
// Display Setup | ||
#define HAS_SCREEN | ||
#define ROTATION 3 | ||
#define WIDTH TFT_HEIGHT | ||
#define HEIGHT TFT_WIDTH | ||
#define BACKLIGHT TFT_BL | ||
#define MINBRIGHT 1 | ||
#define PIN_POWER_ON 15 | ||
|
||
// Font Sizes | ||
#define FP 1 | ||
#define FM 2 | ||
#define FG 3 | ||
|
||
// SD Card | ||
#define SDCARD_CS 13 | ||
#define SDCARD_MISO SPI_MISO_PIN | ||
#define SDCARD_MOSI SPI_MOSI_PIN | ||
#define SDCARD_SCK SPI_SCK_PIN | ||
|
||
// NRF24 - Over QWIIC Port #2 | ||
#define USE_NRF24_VIA_SPI | ||
#define NRF24_CE_PIN 43 | ||
#define NRF24_SS_PIN 44 | ||
#define NRF24_MOSI_PIN SDCARD_MOSI | ||
#define NRF24_SCK_PIN SDCARD_SCK | ||
#define NRF24_MISO_PIN SDCARD_MISO | ||
|
||
// CC1101 | ||
#define USE_CC1101_VIA_SPI | ||
#define CC1101_GDO0_PIN 3 | ||
#define CC1101_GDO2_PIN 38 | ||
#define CC1101_SW1_PIN 47 | ||
#define CC1101_SW0_PIN 48 | ||
#define CC1101_SS_PIN 12 | ||
#define CC1101_MISO_PIN SPI_MISO_PIN | ||
#define CC1101_MOSI_PIN SPI_MOSI_PIN | ||
#define CC1101_SCK_PIN SPI_SCK_PIN | ||
|
||
//PN532 | ||
#define PN532_RF_REST 45 | ||
#define PN532_IRQ 17 | ||
|
||
// Mic | ||
#define MIC_SPM1423 | ||
#define PIN_CLK 39 | ||
#define PIN_DATA 42 | ||
|
||
// Speaker | ||
#define HAS_NS4168_SPKR | ||
#define BCLK 46 | ||
#define WCLK 40 | ||
#define DOUT 7 | ||
#define MCLK PIN_CLK | ||
|
||
// Serial | ||
#define SERIAL_TX 43 | ||
#define SERIAL_RX 44 | ||
|
||
// Fuel Gauge | ||
#define USE_BQ27220_VIA_I2C | ||
#define BQ27220_I2C_ADDRESS 0x55 | ||
#define BQ27220_I2C_SDA GROVE_SDA | ||
#define BQ27220_I2C_SCL GROVE_SCL | ||
|
||
// Encoder | ||
#define ENCODER_INA 4 | ||
#define ENCODER_INB 5 | ||
#define ENCODER_KEY 0 | ||
#define HAS_BTN 1 | ||
#define BTN_ALIAS '"Mid"' | ||
#define SEL_BTN ENCODER_KEY | ||
#define UP_BTN -1 | ||
#define DW_BTN -1 | ||
#define BK_BTN 6 | ||
#define BTN_ACT LOW | ||
|
||
// IR | ||
#define IR_TX_PINS '{{"Default", 2}, {"Pin 43", 43}, {"Pin 44", 44}}' | ||
#define IR_RX_PINS '{{"Default", 1}, {"Pin 43", 43}, {"Pin 44", 44}}' | ||
#define LED 2 | ||
#define RXLED 1 | ||
#define LED_ON HIGH | ||
#define LED_OFF LOW | ||
|
||
// RF Module | ||
#define RF_TX_PINS '{{"Pin 43", 43}, {"Pin 44", 44}}' | ||
#define RF_RX_PINS '{{"Pin 43", 43}, {"Pin 44", 44}}' | ||
|
||
// FM | ||
// #define FM_SI4713 | ||
// #define FM_RSTPIN 40 | ||
|
||
// RTC | ||
// #define HAS_RTC | ||
|
||
// RGB LED | ||
// #define HAS_RGB_LED | ||
// #define RGB_LED=21 | ||
|
||
// BadUSB | ||
#define USB_as_HID=1 | ||
// #define BAD_TX=GROVE_SDA | ||
//#define BAD_RX=GROVE_SCL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.