recup code pour mu editor

This commit is contained in:
2025-07-05 16:11:20 +02:00
parent 12b8efafbf
commit 5e9ac09dcf
25 changed files with 1006 additions and 0 deletions

15
mu_code/accelerometer.py Normal file
View File

@ -0,0 +1,15 @@
# test choix de picto en fonction de l'orientation
from microbit import *
# tests
# while True:
# x = accelerometer.get_x()
# y = accelerometer.get_y()
# z = accelerometer.get_z()
# txt = "x={} y={} z={}".format(x, y, z)
# display.scroll(txt)
# sleep(500)
# neutre : X = -32, y = 1024, z = -60
# haut : X = -28, y = 1000, z = -232
# bas : X = -28, y = 1000, z = 240# Ecrit ton programme ici ;-)