aboutsummaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorkrolyxon <me@krolyxon.com>2026-05-11 14:01:44 +0530
committerkrolyxon <me@krolyxon.com>2026-05-11 14:01:44 +0530
commitf34b1e2fbd94bcc8d0ee2e2e2e43e214d0b329a1 (patch)
tree235d29da4668906d1e11d651980cea8b0c69dec7 /src/config.h
parent360d2d2ad3bd584014683f3579fc2e2348c16852 (diff)
Migrate to PlatformIO
Now since i have been able to make PSRAM working with platformio, i don't have to use this shitty Arduino-IDE anymore which does not even allow me to use subfolders like a normal programmer would do
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
new file mode 100644
index 0000000..3cb47b5
--- /dev/null
+++ b/src/config.h
@@ -0,0 +1,48 @@
+#pragma once
+
+// ================= NRF24 =================
+#define CE1_PIN 10
+#define CSN1_PIN 11
+
+#define CE2_PIN 12
+#define CSN2_PIN 13
+
+#define NRF_SCK 18
+#define NRF_MISO 16
+#define NRF_MOSI 17
+
+// ================== OLED ===================
+#define OLED_SDA_PIN 8
+#define OLED_SCL_PIN 9
+
+/////////////////cc1101 vars//////////////
+// CC1101 via FSPI
+#define cc1101_SCK 15
+#define cc1101_MISO 3
+#define cc1101_MOSI 35
+
+//////////////cc1101(1)//////////
+#define CC1101_CS 45
+#define CC1101_GDO0 21
+#define CC1101_GDO2 47
+
+/////////////cc1101(2)//////////
+#define CC1101_2_CS 40
+#define CC1101_2_GDO0 41
+#define CC1101_2_GDO2 42
+
+// SD Card via HSPI
+#define SD_SCK 14
+#define SD_MISO 39
+#define SD_MOSI 38
+#define SD_CS 37
+
+
+// =================== Buttons ====================
+#define BTN_UP 4
+#define BTN_DOWN 5
+#define BTN_SELECT 6
+#define BTN_BACK 7
+#define BTN_LEFT 1
+#define BTN_RIGHT 2
+