#[instability::unstable]
| ------------------------ private method defined here
- clone esp-hal
- replace
embassy_hello_world.rs
example withmain.rs
-
cargo xtask run-example esp-hal esp32c3 embassy_hello_world
- esp32c3
- IR photoresistor
- IR+ -> esp pin4/5
- IR- -> esp gnd
ADC IR values go about that:
-
bigger IR:
- ~1700 on the table
- ~1770 nicely covered with hand
- ~2160 when the IR is missing (not wired)
- ~1660 with phone lighter level 5 touching IR
-
smaller IR:
- ~1960 on the table
- slowly goes up to 3500 nicely covered with hand
- ~2160 when the IR is missing (not wired)
- ~1660 with phone lighter level 5 touching IR