This is mostly a toy project that will use the Open Notify API to display the number of people in a 7 segment display, using micropython on an ESP8266 Depressingly, a single 7 digit display is adequate to count the number of people in space at this point in time (early 2017).
boot.pyto contain your WiFi access point name and password
mapping.pyto your ESP board
mapping.pyto figure out the pin values for
- Update and upload
- Reboot your ESP
- Check it actually works
On a terminal to your ESP do:
import mapping mapping.run_pin_test()
At this point, it will output what pin it thinks it is lighting up, drop this number into the correct place in
- Only tested on a WeMos D1 Mini ESP8266 board.
- You may want to check what pins I've soldered to before running
run_pin_test, or update that with the pins you've actually used.