MaxO/Readme.MD

92 lines
1.6 KiB
Plaintext
Raw Normal View History

2020-11-15 17:47:23 +00:00
MaxO
v0.1
2020-11-15 17:49:39 +00:00
OSC operations for ESP8266 + Max7219 matrixs led with micropython. Need an ESP8266 on a local network with internet gateway at least for install.
2020-11-15 17:47:23 +00:00
2020-11-15 17:49:39 +00:00
OSC commands :
2020-11-15 17:47:23 +00:00
2020-11-15 17:49:39 +00:00
/demo
/cls
/text 'sometext'
2020-11-15 17:47:23 +00:00
Obviously change /dev/cu.usbserial-1D1310 with your serial port like /dev/tty.USB0
# Hardware connections
Connections wemos D1 mini https://docs.wemos.cc/en/latest/d1/d1_mini_lite.html
5V VCC
2020-11-15 17:49:39 +00:00
2020-11-15 17:47:23 +00:00
GND GND
2020-11-15 17:49:39 +00:00
2020-11-15 17:47:23 +00:00
D7 MOSI (GPIO13) DIN
2020-11-15 17:49:39 +00:00
2020-11-15 17:47:23 +00:00
D8 CS (GPIO15) CS
2020-11-15 17:49:39 +00:00
2020-11-15 17:47:23 +00:00
D5 SCK (GPIO14) CLK
# Flash Wemos D1 mini (ESP8266) 1 Mo
Download micropython firmware :
https://micropython.org/resources/firmware/esp8266-1m-20200902-v1.13.bin
esptool.py erase_flash
2020-11-15 17:49:39 +00:00
esptool.py --port /dev/cu.usbserial-1D1310 --baud 1000000 write_flash --flash_size=4MB -fm dio 0
PATHTO/esp8266-1m-20200902-v1.13.bin
2020-11-15 17:47:23 +00:00
# install ampy
pip3 install ampy
# Wifi config
edit netconf.py
# Matrixs config vertical or horizontal
in matrix9.py
screen = max7219.Max7219(8, 32, spi, Pin(15))
2020-11-15 17:49:39 +00:00
8 is x. 32 is y (4 8x8 max7219)
2020-11-15 17:47:23 +00:00
# Transfer MaxO
2020-11-15 17:49:39 +00:00
* ampy -p /dev/cu.usbserial-1D1310 put boot.py
* ampy -p /dev/cu.usbserial-1D1310 put wlan.py
* ampy -p /dev/cu.usbserial-1D1310 put netconf.py
* ampy -p /dev/cu.usbserial-1D1310 put main.py
* ampy -p /dev/cu.usbserial-1D1310 put maxserver.py
* ampy -p /dev/cu.usbserial-1D1310 put max9.py
* ampy -p /dev/cu.usbserial-1D1310 put max7219.py
* ampy -p /dev/cu.usbserial-1D1310 put uosc
2020-11-15 17:47:23 +00:00
# Onboard install library via Internet
ampy -p /dev/cu.usbserial-1D1310 run wlan
screen /dev/cu.usbserial-1D1310 115200
type in micropython interactive :
import upip
upip.install('uasyncio')
upip.install('ffilib')
# reboot with onboard reset button
reboot