i am going insane
This commit is contained in:
parent
811e6187ea
commit
d6c6b9aebe
|
@ -120,6 +120,7 @@ async fn process_data(spawner: Spawner) {
|
|||
|
||||
#[embassy_executor::task]
|
||||
async fn servo_control() {
|
||||
// TODO: make this work
|
||||
let p = embassy_rp::init(Default::default());
|
||||
|
||||
let sda = p.PIN_14;
|
||||
|
@ -130,6 +131,7 @@ async fn servo_control() {
|
|||
// Fuck you I2C
|
||||
info!("set up i2c");
|
||||
let mut i2c = i2c::I2c::new_async(p.I2C1, scl, sda, I2Crqs, I2Config::default());
|
||||
// Completely guessing at these values
|
||||
let addr: u8 = 0x05;
|
||||
let val: u16 = 2047;
|
||||
// Will this work? Who knows!!
|
||||
|
|
Loading…
Reference in New Issue