diff --git a/rp2040/src/main.rs b/rp2040/src/main.rs index 11af97a..34a2029 100644 --- a/rp2040/src/main.rs +++ b/rp2040/src/main.rs @@ -22,6 +22,12 @@ use bsp::hal::{ watchdog::Watchdog, }; +/// I2C address of this slave +/// WARNING: Do not set this to 52 as there seems +/// to be a device on the bus with that address. In +/// that range, it might be an EEPROM!!! +const I2C_ADDR: u8 = 25; + /// Size of the i2c receive FIFO in bytes const I2C_RECV_FIFO_SIZE: usize = 16; @@ -71,7 +77,7 @@ fn main() -> ! { pins.gpio18.into_mode(), pins.gpio19.into_mode(), &mut pac.RESETS, - 25, + I2C_ADDR.into(), ); let pwm_slices = Slices::new(pac.PWM, &mut pac.RESETS);