diff options
Diffstat (limited to 'firmware/firmware.org')
-rw-r--r-- | firmware/firmware.org | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/firmware.org b/firmware/firmware.org new file mode 100644 index 0000000..9a5fbd6 --- /dev/null +++ b/firmware/firmware.org @@ -0,0 +1,13 @@ +#+TITLE: firmware: network of CO2 sensors +* commands used to flash device +esptool.py --port /dev/ttyUSB0 erase_flash +esptool.py -p /dev/ttyUSB0 --baud 450800 --chip esp8266 write_flash 0x00000 esp8266-20191220-v1.12.bin +(use rshell to upload main.py, settings.py) +./flash.sh +* commands used to read from sensor +i2c=I2C(scl=Pin(4), sda={␛[␛[KPin(5), freq=10000) +i2c.writeto(104, "\x22\x00\x08\x2A".encode()) +i2c.readfrom(104, 4) +* commands used to interact with device +conda activate micropython +rshell |