Add main.ino file

This is a test commit
This commit is contained in:
2025-11-23 11:48:25 +00:00
parent bc9c8e5bc7
commit 36449a1bcf

21
main.ino Normal file
View File

@@ -0,0 +1,21 @@
// Screen dimensions
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 128 // Change this to 96 for 1.27" OLED.
// You can use any (4 or) 5 pins
#define SCLK_PIN 13
#define MOSI_PIN 11
#define MISO_PIN 12
#define DC_PIN 9 // was pin 4
#define CS_PIN 10 // was pin 5
#define RST_PIN 8 // was pin 6
#define RF_CE_PIN 7 // (chicp enable)
#define RF_CSN_PIN 6 // (SPI select)
// Control Data
#define BUTTON_TOP 0
#define BUTTON_BOTTOM 1
#define JOYSTICK_BUTTON A4
#define JOYSTICK_X A6
#define JOYSTICK_Y A5