Skip to content

3ch01c/badgy-python

 
 

Repository files navigation

Instructions

  1. Follow this guide to install MicroPython on Badgy Getting started with MicroPython on the ESP8266
    1. Download the CP210x drivers.
    2. Download MicroPython 1.11 firmware
    3. Install esptool.
      pipenv shell pip install esptool 
    4. Erase existing firmware. (Change port as needed.)
      esptool.py --port /dev/tty.SLAB_USBtoUART erase_flash 
    5. Flash new firmware. (Reduce baud rate if needed.)
      esptool.py --port /dev/tty.SLAB_USBtoUART --baud 460800 write_flash --flash_size=detect 0 esp8266-20190529-v1.11.bin 
    6. Connect to REPL via serial port.
      picocom /dev/tty.SLAB_USBtoUART -b115200 
    7. Enable WebREPL.
      import webrepl_setup 
  2. Install ampy or use the WebREPL for uploading files
  3. Upload main.py, image.py, and epaper2in9.py
  4. Reset Badgy and see the image!

Next Steps

  • Check out this library by @mcauser for more examples and function calls
  • We'll be adding more examples shortly!

About

MicroPython examples for Badgy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%