diff --git a/README.md b/README.md index 1ed1876..0bca2e0 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,4 @@ $ ./upload.sh IF this step fails, edit the `upload.sh` script and change the `/dev/ttyUSB0` to the Serial port assiged to your Arduino (You can check this path with the Arduino IDE) ## Diagram -```Rust -todo!(); -``` +![Diagrama de RustyToken](imgs/diagram.png) diff --git a/imgs/diagram.png b/imgs/diagram.png new file mode 100644 index 0000000..fc0aac5 Binary files /dev/null and b/imgs/diagram.png differ diff --git a/src/main.rs b/src/main.rs index 4154b0b..decf267 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,8 +41,8 @@ fn main() -> ! { let i2c_clock = arduino_hal::I2c::new( dp.TWI, - pins.a4.into_pull_up_input(), - pins.a5.into_pull_up_input(), + pins.a4.into_pull_up_input(), // SDA + pins.a5.into_pull_up_input(), // SCL 50000, ); let mut rtc = ds323x::Ds323x::new_ds3231(i2c_clock);