Files
MicroR1-OS/main.ino
James-admin 36449a1bcf Add main.ino file
This is a test commit
2025-11-23 11:48:25 +00:00

22 lines
513 B
C++

// 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