Releases: BPI-STEAM/MicroPython-Samples
Release list
firmware.bin
Pull the code, provide a bluetooth host module.
Example:
import bluetooth
bt = bluetooth.Bluetooth()
bt.active(1)
bt.advertise(100, 'MicroPython')
tx = bluetooth.Characteristic('6E400002-B5A3-F393-E0A9-E50E24DCCA9E', bluetooth.FLAG_READ|bluetooth.FLAG_NOTIFY)
rx = bluetooth.Characteristic('6E400003-B5A3-F393-E0A9-E50E24DCCA9E', bluetooth.FLAG_WRITE)
s = bt.add_service('6E400001-B5A3-F393-E0A9-E50E24DCCA9E', [tx, rx])
tx.write('hello')
def callback(char, data):
print('rx on update data:', data)
rx.on_update(callback)Provides an android debugging tool.
intellij-mpfshell
updated 2019-04-03
fix remove all files function.
allow execfile other disk paths on windows.
2019-04-01
support pycharm 2019.1
include mpfshell-lite.
2018-11-29
fix mpfshell die after run.
adjust view info to less.
2018-11-02
fix connecting stableγ
Same as mpfshell.
it can be uncovered by official updates
s2mb_firmware.bin
boot start s2mb.
provide s2m-windows.exe support win7+.
ESPBlocks
Blockly with MicroPython.
see this
last updated 2018-11-07
support win7 up.
known issue :
- blockly canβt reply open, need to restart program, but It can be used together with the editor.
other problems?
you tell me.
firmware.bin
fix many microbit function in ESPBlocks.
However, there are still some functions that are not implemented.
for example:
class accelerometer:
def was_gesture(self, gesture="shake"):
print("was_gesture will be supported in the future.")
def is_gesture(self, gesture="shake"):
print("is_gesture will be supported in the future.")
def get_gestures(self):
print("get_gestures will be supported in the future.")
def current_gesture(self):
print("current_gesture will be supported in the future.")
class Image:
def copy(self):
print("copy will be supported in the future.")
def invert(self):
for i in range(self.tem):
self.tem[i] = 0 if self.tem[i] != 0 else 1
return self
class display:
def get_pixel(self, x=0, y=0):
print("get_pixel will be supported in the future.")
def set_pixel(self, x=0, y=0, value=9):
print("set_pixel will be supported in the future.")
def on(self):
self.clear()
def off(self):
self.clear()
def is_on(self):
return self.Led != None
def panic(flag=0):
return machine.reset_cause()
reset = machine.resetThe main point is to add the above functions.
Don't worry, we'll solve it soon.
windows-mosquitto
Set up the MQTT server on Windows for your own testing.
Tools
-
On the official
It provides additional support for the following functions
- microbit
- pins
- display(Image)
- music
- button
- accelerometer
- compass
- piexl
- mpu9250
- microbit
-
network
-
wifi
-
smartconfig
-
mdns(lobo)
-
webdav(mongoose)
-
Everything is provided in git except for code built into the firmware
2018-10-17
- fix Auto Tools throw exception ouput, and support win7.
2018-11-01
- add requests.
- fix midi music.
2018-11-22
- Compatible with different hardware versions
- Only the magnetometer cannot be used.
2018-11-26
- support ftp server. see ftp_server.py
- fix music.
- add https://microwebsrv.hc2.fr/
2018-12-10
- fix 1.2 and 1.4 Mpu Automatic discrimination. (but 1.2 no compass)
- fix multi channel Pwm output.
2019-02-04
- build-in MicroPython SSD1306 OLED driver, I2C and SPI interfaces.
- timer changed to https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/timer.
Last update 2019-03-12
- rebase