Micropython version of LaBoite (https://github.com/redgick/Redgick_Laboite)
- An ESP8266 or ESP32 board
- An SSD1306 OLED screen
- Clone the repository
- Depending on your board
export TARGET=esp8266orexport TARGET=esp32 - Run
make flashto download the appropriate Micropython firmware and flash your board with it - Create
laboate/config.pyfile based onlaboate/config.py.sample - Run
make uploadto upload the required files to the board - Reset the board
- Profit!
Depending on your setup, you can override these environment variables:
MICROPYTHON_VERSION: version of Micropython you want to use, default is 1.9.4TARGET: type of your board, can beesp8266oresp32(case sensitive!)PORT: port on which your board is connected to your computer, default is/dev/ttyUSB0BAUDRATE: baud rate used to communicate with your board, default is115200
You will find a ready to use config file in laboate folder named config.py.sample.
Here are the available options and sections
Configuration related to the SSD1306 screen:
address: address used to communicate with the screen, can be0x3cor0x3d(this should be written on the screen)sda: GPIO pin (number required, notD1for example) connected to the SDA pin on the screenscl: GPIO pin (number required, notD2for example) connected to the SCL pin on the screenwidth: width (in pixels) of the screenheight: height (in pixels) of the screenscale: as LeNuage (http://github.com/laboiteproject/lenuage/) is made for smaller screens, upscale the rendering with this factor (int)
Configuration about your Wifi network
ssid: name of the SSID of the networkpassword: password used to connect to the network
Configuration about LeNuage
base_url: URL of LeNuage instanceapi_key: API key of your Boite object