bluething IoT Sensor based on ESP8266
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
Bernhard Fröhlich 1250feee07 Fix formatting 2年前
LICENSE Add mcp9808.py from github.com/kfricke/micropython-mcp9808 2年前
README.md Fix formatting 2年前
main.py First full code drop 2年前
mcp9808.py First full code drop 2年前

README.md

bluething-sensor

bluething IoT Sensor based on ESP8266

Requirements

This code was tested with an Adafruit Feather HUZZAH and an Adafruit MCP9808 temperature sensor but any ESP8266 board should work.

  • ESP8266 board
  • Adafruit MCP9808
  • MicroPython (tested with 1.8.6)

Running the code

Please check the variables on top in main.py because you will likely want to change a few of them.

You need to upload the python code to the board. Any method should work so you can choose between ampy, WebREPL, rshell or mpfshell. I prefer the last one so:

mpfshell
> open ttyUSB0
> put main.py
> put mcp9808.py
> exit

Connect to the serial console to see the output.

miniterm.py /dev/ttyUSB0 115200

Reset the device to run the uploaded code.