Skip to content

Releases: BPI-STEAM/MicroPython-Samples

firmware.bin

21 Apr 14:18
Compare
Choose a tag to compare

Pull the code, provide a bluetooth host module.

micropython/micropython#4589

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

21 Oct 10:41
Compare
Choose a tag to compare

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

03 Feb 16:48
Compare
Choose a tag to compare

boot start s2mb.

provide s2m-windows.exe support win7+.

ESPBlocks

06 Nov 10:07
Compare
Choose a tag to compare

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

16 Jan 11:35
Compare
Choose a tag to compare

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.

windows-mosquitto

11 Jan 03:07
Compare
Choose a tag to compare

Set up the MQTT server on Windows for your own testing.

Tools

16 Oct 09:27
Compare
Choose a tag to compare
  1. On the official

    It provides additional support for the following functions

    1. microbit
      1. pins
      2. display(Image)
      3. music
      4. button
      5. accelerometer
      6. compass
    2. piexl
    3. mpu9250
  2. network

    1. wifi

    2. smartconfig

    3. mdns(lobo)

    4. webdav(mongoose)

Everything is provided in git except for code built into the firmware

2018-10-17

  1. fix Auto Tools throw exception ouput, and support win7.

2018-11-01

  1. add requests.
  2. fix midi music.

2018-11-22

  1. Compatible with different hardware versions
  2. Only the magnetometer cannot be used.

2018-11-26

  1. support ftp server. see ftp_server.py
  2. fix music.
  3. add https://microwebsrv.hc2.fr/

2018-12-10

  1. fix 1.2 and 1.4 Mpu Automatic discrimination. (but 1.2 no compass)
  2. fix multi channel Pwm output.

2019-02-04

  1. build-in MicroPython SSD1306 OLED driver, I2C and SPI interfaces.
  2. timer changed to https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/timer.

Last update 2019-03-12

  1. rebase