Skip to content

firmware.bin

Choose a tag to compare

@junhuanchen junhuanchen released this 16 Jan 11:35
· 101 commits to master since this release

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.