Skip to content

Commit f440d41

Browse files
committed
chore(firmware): reassign pins
1 parent 7079c42 commit f440d41

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

firmware/src/bin/main.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ async fn main(spawner: Spawner) {
5151
peripherals.DMA_CH1.degrade(),
5252
peripherals.GPIO7.into(),
5353
peripherals.GPIO6.into(),
54-
peripherals.GPIO0.into(),
54+
peripherals.GPIO5.into(),
5555
);
56-
let sd = Sd::new(shared_bus, peripherals.GPIO5.into()).await;
56+
let sd = Sd::new(shared_bus, peripherals.GPIO10.into()).await;
5757

5858
let (device_config, fs) = sd.init().await;
5959
let fs = mk_static!(SdFsWrapper, fs);
@@ -73,29 +73,29 @@ async fn main(spawner: Spawner) {
7373

7474
info!("Starting controls");
7575
let controls = Controls::new(
76-
peripherals.GPIO9.into(),
77-
peripherals.GPIO18.into(),
78-
peripherals.GPIO19.into(),
79-
peripherals.GPIO20.into(),
76+
peripherals.GPIO0.into(),
77+
peripherals.GPIO1.into(),
78+
peripherals.GPIO2.into(),
79+
peripherals.GPIO3.into(),
8080
);
8181
controls.spawn(&spawner, player_handle.clone());
8282

8383
info!("Starting RFID");
8484
let rfid = Rfid::new(
8585
shared_bus,
86-
peripherals.GPIO1.into(),
87-
peripherals.GPIO10.into(),
86+
peripherals.GPIO18.into(),
87+
peripherals.GPIO19.into(),
8888
player_handle.clone(),
8989
)
9090
.await;
9191
rfid.spawn(&spawner);
9292

9393
info!("Starting charger");
94-
let charger = Charger::new(peripherals.GPIO11.into());
94+
let charger = Charger::new(peripherals.GPIO4.into());
9595
let charger_monitor = charger.spawn(&spawner);
9696

9797
info!("Starting radio");
98-
let radio = Radio::new(peripherals.WIFI, peripherals.GPIO2.into(), device_config);
98+
let radio = Radio::new(peripherals.WIFI, peripherals.GPIO8.into(), device_config);
9999
let stack = radio.spawn(charger_monitor, &spawner).await;
100100

101101
info!("Starting mDNS responder");

0 commit comments

Comments
 (0)