ESP32 (MicroPython)

ESP32 (MicroPython)

This page is to Setup and Config ESP32

Hardware and Software

Hardware : ESP32

Software : MicroPython

Documents :

http://docs.micropython.org/en/latest/

Editor for PC and MAC

    • Download Editor uPyCraft : https://github.com/DFRobot/uPyCraft

Firmware Update

    • Download Firmware : http://micropython.org/download#esp32

    • esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 460800 write_flash -z 0x1000 esp32-20190125-v1.10.bin

Reference

    • Getting started with MicroPython on the ESP32 : http://docs.micropython.org/en/latest/esp32/tutorial/intro.html

ESP32 Bluetooth BLE (New On 20191022)

    • >>> dir(bluetooth)

    • ['__class__', '__name__', 'BLE', 'FLAG_NOTIFY', 'FLAG_READ', 'FLAG_WRITE', 'UUID']

    • >>> dir(bluetooth.BLE)

    • ['__class__', '__name__', '__bases__',

    • 'active',

    • 'config',

    • 'gap_advertise',

    • 'gap_connect',

    • 'gap_disconnect',

    • 'gap_scan',

    • 'gattc_discover_characteristics',

    • 'gattc_discover_descriptors',

    • 'gattc_discover_services',

    • 'gattc_read',

    • 'gattc_write',

    • 'gatts_notify',

    • 'gatts_read',

    • 'gatts_register_services',

    • 'gatts_write',

    • 'irq']

    • >>> dir(bluetooth.UUID)

    • ['__class__', '__name__', '__bases__']

Notes

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Examples

Examples

EXample