Skip to content

Commit

Permalink
SDAにしてもだめっぽい……
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshitakaNaraoka committed Feb 24, 2025
1 parent 0d4899e commit ae4b873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use esp_idf_svc::hal::{
gpio::{Gpio35, Input, Pin, Pull},
gpio::{Gpio21, Input, Pin, Pull},
peripherals::Peripherals,
};
use esp_idf_svc::eventloop::*;
Expand All @@ -15,7 +15,7 @@ fn main() -> anyhow::Result<()> {
esp_idf_svc::log::EspLogger::initialize_default();

let peripherals = Peripherals::take().unwrap();
let pin = peripherals.pins.gpio35.into_input()?;
let pin = peripherals.pins.gpio21.into_input()?;
let mut button = esp_idf_svc::hal::gpio::PinDriver::input(pin)?;
button.set_pull(Pull::Up)?;

Expand Down

0 comments on commit ae4b873

Please sign in to comment.