-
Notifications
You must be signed in to change notification settings - Fork 31
Releases: BPI-STEAM/MicroPython-Samples
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.
Assets 4
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
Assets 4
s2mb_firmware.bin
boot start s2mb.
provide s2m-windows.exe support win7+.
Assets 4
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.
Assets 3
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.reset
The main point is to add the above functions.
Don't worry, we'll solve it soon.
Assets 3
windows-mosquitto
Set up the MQTT server on Windows for your own testing.
Assets 3
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