Skip to content

Instantly share code, notes, and snippets.

@VlastimilHovan
VlastimilHovan / maze game.py
Created November 30, 2016 20:04
BBC microbit maze game (code release)
from microbit import *
pin0.set_analog_period(10)
pin1.set_analog_period(10)
axis_old_x = 0
axis_old_y = 0
axis_x = 0 # plate
axis_y = 0 # base
@VlastimilHovan
VlastimilHovan / pov.py
Created November 30, 2016 19:43
BBC microbit persistence of vision (code release)
from microbit import *
time_ = 1
time_1 = 1
axis_x = 0
#Line 8,9,10,11,12 are not needed. It is only functionality check of my LEDs.
pin16.write_digital(1)
pin15.write_digital(1)
pin14.write_digital(1)
@VlastimilHovan
VlastimilHovan / pulse rate.py
Created November 30, 2016 18:30
BBC microbit pulse rate monitor (code release)
from microbit import *
analog_0 = 0
counter = 0
previous_running_time = 0
target = 20000
pulse = 0
remind = 0
while True: