micropython
Table of Contents
Micropython Esp32
HW
WS2813
- 2de input moet aan gnd
- veel stroom: gnd → 0.5, 5V → 4.5v
Radar RWCL-0516
IDE
- https://thonny.org/ works well
import microdot_asyncio dir(microdot_asyncio)
import gc import micropython gc.mem_alloc() gc.mem_free() micropython.mem_info()
Firmware
Flash
Makkelijk
Thonny IDE (cp2102 usb to uart driver must be installed)
- tools
- interpreter → micropython esp32 → install micropython
- family esp32, variant esp32/wroom
- install
Anders:
in anacoda shell:
- pip install esptool
- python -m esptool
C:\Users\hans\Desktop\MICORPYTHON_ESP32\MicroPython_ESP32_psRAM_LoBo-master\MicroPython_BUILD\firmware\esp32_all> esptool --chip esp32 --port COM5 --baud 460800 --before default_reset --after no_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 bootloader/bootloader.bin 0xf000 phy_init_data.bin 0x10000 MicroPython.bin 0x8000 partitions_mpy.bin
of esp32_psram_ota
Modules
>>> help("modules")
__main__ heapq select upip
_thread io socket upip_utarfile
ak8963 json ssd1306 upysh
array logging ssh urandom
binascii machine ssl ure
btree math struct urequests
builtins microWebSocket sys uselect
cmath microWebSrv time usocket
collections microWebTemplate tpcalib ussl
curl micropython ubinascii ustruct
display mpu6500 ucollections utime
errno mpu9250 uctypes utimeq
framebuf network uerrno uzlib
freesans20 os uhashlib websocket
functools pye uheapq writer
gc random uio ymodem
gsm re ujson zlib
hashlib requests uos
Plus any modules on the filesystem
from machine import Neopixel
micropython.txt · Last modified: by 127.0.0.1
