diff options
| author | krolyxon <me@krolyxon.com> | 2026-06-20 00:47:08 +0530 |
|---|---|---|
| committer | krolyxon <me@krolyxon.com> | 2026-06-20 00:47:08 +0530 |
| commit | ab699e4c1387aee7bfdd116d35eb1b9289fc0a71 (patch) | |
| tree | 355fd3e7ea818b0db14f1c694adbd7c7d3bfe49e /src/board/pins.rs | |
| parent | 7e4cfad53699fabbecb6696508e5addcffc1b095 (diff) | |
Diffstat (limited to 'src/board/pins.rs')
| -rw-r--r-- | src/board/pins.rs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/board/pins.rs b/src/board/pins.rs new file mode 100644 index 0000000..71e471b --- /dev/null +++ b/src/board/pins.rs @@ -0,0 +1,31 @@ +// OLED +pub const OLED_SDA_PIN: i32 = 8; +pub const OLED_SCL_PIN: i32 = 9; + +// NRF24 +pub const CE1_PIN: i32 = 10; +pub const CSN1_PIN: i32 = 11; + +pub const CE2_PIN: i32 = 12; +pub const CSN2_PIN: i32 = 13; + +pub const NRF_SCK: i32 = 18; +pub const NRF_MISO: i32 = 16; +pub const NRF_MOSI: i32 = 17; + +// CC1101 FSPI +pub const CC1101_SCK: i32 = 15; +pub const CC1101_MISO: i32 = 41; +pub const CC1101_MOSI: i32 = 35; + +pub const CC1101_CS: i32 = 40; +pub const CC1101_GDO0: i32 = 39; +pub const CC1101_GDO2: i32 = 42; + +// Buttons +pub const BTN_UP: i32 = 4; +pub const BTN_DOWN: i32 = 5; +pub const BTN_SELECT: i32 = 6; +pub const BTN_BACK: i32 = 7; +pub const BTN_RIGHT: i32 = 1; +pub const BTN_LEFT: i32 = 2; |
