i am going insane

This commit is contained in:
Erin Abicht 2023-07-21 16:45:33 -04:00
parent 811e6187ea
commit d6c6b9aebe
No known key found for this signature in database
GPG Key ID: 9A8E308CEFA37A47
1 changed files with 2 additions and 0 deletions

View File

@ -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!!