builded
This commit is contained in:
@@ -11,8 +11,8 @@ use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex;
|
||||
use embassy_sync::channel::Channel;
|
||||
use embassy_time::Duration;
|
||||
use semestralka2::receive::bit_receive_and_decode;
|
||||
use semestralka2::send::nrz;
|
||||
use semestralka2::send::Tx;
|
||||
use semestralka2::send::{bit_send, nrz};
|
||||
|
||||
use {defmt_rtt as _, panic_probe as _};
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ const START: u8 = 0x7E;
|
||||
const STOP: u8 = 0x81;
|
||||
const BIT_PERIOD: Duration = Duration::from_millis(10);
|
||||
|
||||
type Tx = Sender<'static, CriticalSectionRawMutex, u8, 128>;
|
||||
pub type Tx = Sender<'static, CriticalSectionRawMutex, u8, 128>;
|
||||
|
||||
async fn send_byte(byte: u8, tx: &Tx) {
|
||||
for i in (0..8).rev() {
|
||||
|
||||
Reference in New Issue
Block a user