Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: BPI-STEAM/MicroPython-Samples

firmware.bin

21 Apr 14:18
@junhuanchen junhuanchen

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.

Assets 4
Loading

intellij-mpfshell

21 Oct 10:41
@junhuanchen junhuanchen

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

Loading

s2mb_firmware.bin

03 Feb 16:48
@junhuanchen junhuanchen

Choose a tag to compare

boot start s2mb.

provide s2m-windows.exe support win7+.

Loading

ESPBlocks

06 Nov 10:07
@junhuanchen junhuanchen

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.

Loading

firmware.bin

16 Jan 11:35
@junhuanchen junhuanchen

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.

Loading

windows-mosquitto

11 Jan 03:07
@junhuanchen junhuanchen

Choose a tag to compare

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

Loading

Tools

16 Oct 09:27
@junhuanchen junhuanchen

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
Loading

AltStyle によって変換されたページ (->オリジナル) /