From 751e664a28892fd92694abf3d821d068013e9453 Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Mon, 8 Mar 2021 13:21:37 -0600 Subject: initial commit --- firmware/firmware.org | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 firmware/firmware.org (limited to 'firmware/firmware.org') 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 -- cgit v1.2.3