Thursday, April 2, 2020

micropython notes for esp32-devkitC wroom-32d

MicroPython Basics: Load Files & Run Code

install micropython firmware
http://docs.micropython.org/en/latest/esp32/tutorial/intro.html


Blink an LED with Micopython
https://learn.adafruit.com/micropython-basics-blink-a-led/blink-led


import machine
import time
led = machine.Pin(15, machine.Pin.OUT)
print ('hello')

for i in range(10):
    led(0)
    time.sleep(0.5)
    led(1)
    time.sleep(0.5)

follow the quick ref:
http://docs.micropython.org/en/latest/esp32/quickref.html



https://www.digikey.com/en/maker/projects/micropython-basics-load-files-run-code/fb1fcedaf11e4547943abfdd8ad825ce

http://wiki.micropython.org/Importing-Modules
https://en.wikibooks.org/wiki/A_Beginner%27s_Python_Tutorial/Importing_Modules
https://docs.micropython.org/en/latest/reference/packages.html

https://learn.adafruit.com/micropython-basics-load-files-and-run-code/file-operations

http://docs.micropython.org/en/v1.9.3/pyboard/

https://forum.micropython.org/viewtopic.php?t=2967


https://circuits4you.com/2018/12/31/esp32-devkit-esp32-wroom-gpio-pinout/
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/modules-and-boards.html#esp-modules-and-boards-esp32-wrover


http://docs.micropython.org/en/latest/esp32/quickref.html
https://docs.micropython.org/en/latest/esp32/tutorial/intro.html#esp32-intro
http://docs.micropython.org/en/latest/esp8266/tutorial/repl.html

https://randomnerdtutorials.com/getting-started-with-esp32/

Blink an LED with Micopython
https://learn.adafruit.com/micropython-basics-blink-a-led/blink-led


import machine
import time
led = machine.Pin(15, machine.Pin.OUT)
print ('hello')

for i in range(10):
    led(0)
    time.sleep(0.5)
    led(1)
    time.sleep(0.5)

connect to board:

https://github.com/dhylands/rshell
https://github.com/micropython/micropython-lib
https://github.com/dmazzella/ucryptoauthlib/tree/master/tests/ateccX08a
https://github.com/MicrochipTech/cryptoauthtools/blob/master/python/examples/info.py
https://gist.github.com/bshambaugh/9ac2db6075c5852b23c8d2b6140b02a8

https://github.com/dmazzella/ucryptoauthlib
https://pypi.org/project/cryptoauthlib/
https://github.com/MicrochipTech/cryptoauthtools/blob/master/python/examples/config.py

Alternatively, instead of micropython try:

building https://github.com/espressif/esp-idf
(note: I had some errors which I fixed with "sudo apt install flex bison gperf" }

and following:

https://docs.espressif.com/projects/esp-idf/en/stable/get-started/#introduction
and
https://github.com/MicrochipTech/cryptoauthlib/issues/28

useful reference. how to look in a Python object.
(https://book.pythontips.com/en/latest/object_introspection.html)
how to include python in C
https://docs.python.org/2.1/ext/callingPython.html
https://docs.python.org/2/extending/embedding.html





No comments:

Post a Comment