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=esp8266
orexport TARGET=esp32
- Run
make flash
to download the appropriate Micropython firmware and flash your board with it - Create
laboate/config.py
file based onlaboate/config.py.sample
- Run
make upload
to 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 beesp8266
oresp32
(case sensitive!)PORT
: port on which your board is connected to your computer, default is/dev/ttyUSB0
BAUDRATE
: 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 be0x3c
or0x3d
(this should be written on the screen)sda
: GPIO pin (number required, notD1
for example) connected to the SDA pin on the screenscl
: GPIO pin (number required, notD2
for 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