This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![no_std] | |
#![no_main] | |
use core::cell::{Cell, RefCell}; | |
use defmt::*; | |
use embassy_executor::Spawner; | |
use embassy_rp::{gpio::Pull, peripherals::PWM_SLICE4}; | |
use embassy_rp::adc::{self, Adc, Blocking}; | |
use embassy_rp::interrupt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![no_std] | |
#![no_main] | |
use core::mem::{self, MaybeUninit}; | |
use defmt::*; | |
use embassy_executor::Spawner; | |
use embassy_futures::join::join; | |
use embassy_futures::select::{select, Either}; | |
use embassy_rp::gpio::{AnyPin, Input, Level, Output, Pull}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![no_std] | |
#![no_main] | |
use embassy_executor::Spawner; | |
use embassy_futures::join::join; | |
use embassy_futures::select::{select, Either}; | |
use embassy_rp::gpio::{AnyPin, Input, Level, Output, Pull}; | |
use embassy_sync::blocking_mutex::raw::NoopRawMutex; | |
use embassy_sync::signal::Signal; | |
use embassy_time::Timer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![no_std] | |
#![no_main] | |
#![feature(type_alias_impl_trait)] | |
use core::mem::{self, MaybeUninit}; | |
use defmt::info; | |
use embassy_executor::Spawner; | |
use embassy_rp::bind_interrupts; | |
use embassy_rp::peripherals::PIO0; | |
use embassy_rp::pio::{Common, Config, Direction, Instance, InterruptHandler, Irq, Pio, PioPin, StateMachine}; |