generated from TDD-Templates/cmake_cpputest_template
Moved magic numbers into header
This commit is contained in:
parent
07c2ee4b6d
commit
3f45a4f789
|
@ -7,10 +7,15 @@
|
|||
|
||||
//Only applied if defined
|
||||
#ifdef FEATHER_RFM9X
|
||||
//Define Serial params for debuging
|
||||
#define SERIAL_BUADRATE 115200
|
||||
|
||||
// DISPLAY CONFIGURATION (ST7789)
|
||||
#define TFT_CS 5 // Chip select pin for the display
|
||||
#define TFT_RST 9 // Reset pin for the display
|
||||
#define TFT_DC 6 // Data/Command pin for the display
|
||||
#define TFT_X 240 // Number of pixes in X axis.
|
||||
#define TFT_Y 280 // Number of pixes in Y axis.
|
||||
|
||||
// LED RING CONFIGURATION (WS2812)
|
||||
#define NUM_LEDS 24 // Number of LEDs in the ring
|
||||
|
|
|
@ -117,10 +117,10 @@ int Radio_ReceiveData() {
|
|||
|
||||
void setup(void) {
|
||||
// Initialize Serial Communication for debugging
|
||||
Serial.begin(115200);
|
||||
Serial.begin(SERIAL_BUADRATE);
|
||||
|
||||
// Display Setup
|
||||
tft.init(240, 280); // Initialize the display with a resolution of 240x280 pixels
|
||||
tft.init(TFT_X, TFT_Y); // Initialize the display with a resolution of 240x280 pixels
|
||||
tft.fillScreen(ST77XX_BLACK); // Set the screen background to black
|
||||
|
||||
// Magnetometer Setup
|
||||
|
|
Loading…
Reference in New Issue