Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Sep 5, 2024
1 parent a97780f commit d8549a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/src/bin/rmt_rx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use esp_backtrace as _;
use esp_hal::{
delay::Delay,
gpio::Io,
gpio::{Io, Level, Output},
prelude::*,
rmt::{PulseCode, Rmt, RxChannel, RxChannelConfig, RxChannelCreator},
};
Expand All @@ -27,7 +27,7 @@ fn main() -> ! {
let peripherals = esp_hal::init(esp_hal::Config::default());

let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
let mut out = io.pins.gpio5;
let mut out = Output::new(io.pins.gpio5, Level::Low);

cfg_if::cfg_if! {
if #[cfg(feature = "esp32h2")] {
Expand Down

0 comments on commit d8549a6

Please sign in to comment.