This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from microbit import accelerometer, display, Image, sleep | |
import random | |
pictures = [ | |
Image('55555:55555:55555:55555:55555'), # Rock | |
Image('50005:05050:00500:55055:55055'), # Scissors | |
Image('55500:50050:50005:50005:55555'), # Paper | |
] | |
while True: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import speech | |
import radio | |
from microbit import display, Image | |
phrases = [ | |
"#39froyderr " # Freude | |
"#35sherr#31ner " # schoner | |
"gerr#35terr#39fuhnx#52kahn" # Gotterfunken | |
"#62taaaakterr " # Tochter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import speech | |
import radio | |
from microbit import display, Image | |
phrases = [ | |
"#31froyderr " # Freude | |
"#29sherr#26ner " # schoner | |
"gerr#29terr#31fuhnx#35kahn" # Gotterfunken | |
"#39taaaakterr " # Tochter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import radio | |
from microbit import button_a, display, Image | |
radio.on() | |
display.show(Image.HAPPY) | |
while True: | |
if button_a.was_pressed(): | |
radio.send('go') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from micropython import * | |
import random | |
dots = [ [0]*5, [0]*5, [0]*5, [0]*5, [0]*5 ] | |
while True: | |
dots[random.randrange(5)][random.randrange(5)] = 9 | |
for i in range(5): | |
for j in range(5): | |
display.set_pixel(i, j, dots[i][j]) | |
dots[i][j] = max(dots[i][j] - 1, 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Light acuity game. A pixel will change on either the | |
# left or the right. Click the appropriate button within | |
# an ever decreasing amount of time to increase your score. | |
# The game is over when you get it wrong or don't answer | |
# in time. | |
# Based on an idea by Dave Gibbs. | |
# By Nicholas Tollervey, Feb. 2016. Released to the public domain. | |
from microbit import * | |
import random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Play a game of squeeky pong with a 1m (30 led) NeoPixel strip. :-) | |
from microbit import * | |
import music | |
import neopixel | |
np = neopixel.NeoPixel(pin1, 30) | |
def show_pixel(position, wait): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Play a game of squeeky pong with a 1m (30 led) NeoPixel strip. :-) | |
from microbit import * | |
import music | |
import neopixel | |
neopixel.init(pin1, 30) | |
def show_pixel(position, wait): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while True: | |
scroll_string_image(StringImage('HELLO TRANSCODE!'),100) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +ntoll is my openname (Bitcoin username). https://onename.com/ntoll |