From 3cd6e72b8d7e956da1d60c5170954fdb189c2950 Mon Sep 17 00:00:00 2001 From: hugo LAMY Date: Mon, 17 Mar 2025 09:09:52 +0100 Subject: [PATCH] add doc --- module06/ex01/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module06/ex01/main.c b/module06/ex01/main.c index 3e3886d..78798b1 100644 --- a/module06/ex01/main.c +++ b/module06/ex01/main.c @@ -31,7 +31,7 @@ void print_hex_value(char c) { void print_data() { uint8_t data; - for (uint8_t i = 0; i < 7; i++) { + for (uint8_t i = 0; i < 7; i++) { // doc AHT20, 7.4 : >= 7 bytes -> CRC (Cyclic Redundancy Check), an error-detecting code data = i2c_read_nack(); print_hex_value(data); if (i == 0) { @@ -116,7 +116,7 @@ int main() { i2c_start_repeat(); i2c_send_addr_w(AHT20_ADDRESS); - _delay_ms(20); + _delay_ms(10); // aht20_wait_for_status(); i2c_write(0xAC);