This commit is contained in:
Filipriec
2026-05-18 14:01:51 +02:00
parent c7d790f474
commit cb99c9b89b
2 changed files with 2 additions and 2 deletions

View File

@@ -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 _};

View File

@@ -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() {