Releases: microBlock-IDE/micropython
MicroPython for KidBright32, open:bit, KidMotor V4, Rapbit32 V1.9.0 (dirty)
KidBright32
- Fixed ESP-NOW error
open:bit
- Add board open:bit
KidMotor V4
- Add board KidMotor V4
- Add
motor
module - Add
display
module - Add
switch
module
Rapbit32
- Add board Rapbit32
- Add
motor
module - Add
display
module - Add
switch
module - Add
ir
module - Add
sensor
module
MicroPython for KidBright32iA
Add support KidBright32iA Upload .bin at 0x1000
MicroPython By microBlock V1.6.0
TTGO T-Display
- Add MicroPython for TTGO T-Display
KidBright32
- Fixed bug
display.show4x6()
ESP32 Dev Board
- Add MicroPython for ESP32 Dev Board
MicroPython for KidBright32/IPST-WiFi V1.5.1
- Add dot show/hide
MicroPython for KidBright32/IPST-WiFi V1.5.0
KidBright32
- Add upload on reset
- IMU add on event
- Switch add on pressed
- Fixed sensor.light return 0
IPST-WiFi
- Add upload on reset
- Add Display draw image
MicroPython for KidBright32/IPST-WiFi V1.4.0
Add V1.4.0
MicroPython for KidBright32 V1.3.0-beta-2
Fixed bug
- Remember calibrate compass value
MicroPython for KidBright32 V1.3.0-beta-dirty
Future
Module display
- Add
display.left()
display.right()
anddisplay.plot()
Module buzzer
- Add
buzzer.note()
Module switch
- Add
switch.press()
andswitch.release()
MicroPython for KidBright32 V1.1.0
Future:
- add
show4x8()
for show number 4-digit in one time in moduledisplay
- add
rotation()
andheading()
in moduleimu
Fixed bug:
- module servo
MicroPython for KidBright32 V1.0.0
Support KidBright32 V1.3, V1.4, V1.5, V1.5i by INEX, V1.6 by Gravitech
Modules
All ESP32 modules support (See Quick reference for the ESP32)
I add modules for KidBright32
Module display
Show text and number on DotMarix 16x8
import display
display.show(99) # only 2-char show
display.scroll("Hello, mars !")
display.clear()
Module sensor
Read temp and light level
import sensor
lavel = sensor.light() # 0 - 100%
temp = sensor.temperature() # temperature in celsius
Module buzzer
Made sound on buzzer
import buzzer
buzzer.tone(freq=2093, duration=0.5, duty=50)
buzzer.on(freq=2000, duty=50)
buzzer.off()
Module rtc
Get and set time to RTC, same machine.RTC
import rtc
rtc.datetime((2017, 8, 23, 1, 12, 48, 0, 0)) # set a specific date and time
datetime = rtc.datetime() # get date and time
Module usb
Get and set logic on USB-A port
import usb
usb.value(1) # or 0
usb.on()
usb.off()
usb.toggle()
Module switch
Get status from S1 ann S2
import switch
value = switch.value(switch.S1) # or switch.S2
Module servo
Set angle of Servo motor on Servo pin (only on KidBrgiht32 V1.5 , V1.5i by INEX, V1.6 by Gravitech)
import servo
servo.angle(servo.SV1, 45) # Set servo on SV0 move to angle 0
servo.angle(servo.SV2, 90) # Set servo on SV1 move to angle 1
Module imu
Read data from IMU sensor on KidBrgiht32 V1.5i by INEX, V1.6 by Gravitech
import imu
imu.update() # read data from sensor
acc = imu.acc # array of (x, y, z)
gyro = imu.gyro # array of (x, y, z), only on KidBrgiht32 V1.6 by Gravitech
mag = imu.mag # array of (x, y, z), only on KidBrgiht32 V1.5i by INEX
You can see more detail. Source all module
How to install on KidBright32
You can choose one
MicroUploader (Recommend)
Download MicroUploader and then open, Select you board, Port and MicroPython firmware version then click Upload
esptool
Flash Download Tools
only on Windows. you can download this tool from https://www.espressif.com/en/support/download/other-tools
Open flash_download_tool_3.8.5.exe
then select Developer Mode > ESP32 DownloadToo
Add MicroPython.for.KidBright32.V1.0.0.bin
@ 0x1000
Select port and baud then Click Erase for clear flash (Fixed can't upload MicroPython code file)
Click START and wait finished
How to use
You can use microBlock IDE in Code mode for programming.