diff --git a/src/webee.rs b/src/webee.rs index 53d9ae0..2698395 100644 --- a/src/webee.rs +++ b/src/webee.rs @@ -1,21 +1,27 @@ -use arduino_hal::Usart; -use arduino_hal::usart::UsartOps; +use arduino_hal::clock::Clock; +use arduino_hal::hal::Atmega; +// use arduino_hal::port; +// use arduino_hal::port::mode::{Input, Output}; +use arduino_hal::usart::{Usart, UsartOps}; use arduino_hal::prelude::*; + use embedded_hal::serial::{Read}; mod vector; pub use vector::Vector; -pub struct Webee where - USART: UsartOps +pub struct Webee, RX, TX> //where +// USART: UsartOps, port::Pin> { webee: Usart, } enum SEND_CMD {} -impl Webee { +impl, RX, TX> Webee // where + // USART: UsartOps, port::Pin> +{ const STOP: u8 = 0xFF; pub fn new(device: USART, rx: RX, tx: TX) -> Self {