An overly simplistic set of communication devices: Thing1 and Thing2
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
firmware
src
.gitignore
LICENSE
README.md
install.sh
requirements.txt

README.md

Thing 1 and Thing 2

An overly simplistic set of communication devices: Thing1 and Thing2

Userful Commands

screen /dev/tty.SLAB_USBtoUART 115200 ampy --port /dev/tty.SLAB_USBtoUART ls

Hardware

Pins

  • 2 = Button
  • 4,5 = I2C Buzzer
  • 12 = Blue led
  • 13 = Green led
  • 16 = Red led

Software

Identity

For this code to work thing1 and thing2 need to know who they are and which role they are playing. To do this their individual mac addresses are set in settings.py which checks the mac and sets I_AM_THING1 and I_AM_THING2 accordingly.

Tutorials

TODO

  • Make LED class to abstract all LEDs
  • Use PWM to dim power LED
  • Use main LED for network status