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
; KNIGHTS by Darryl Sloan, 16 May 2018 | |
; Enhanced version: https://spectrumcomputing.co.uk/index.php?cat=96&id=32308 | |
ORG 43000 | |
LASTK EQU 23560 | |
START LD A, 0 ; border black | |
CALL 8859 | |
LD A, 2 ; select upper screen | |
CALL 5633 |
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
# CHESS CLOCK by Darryl Sloan, 11 February 2019 | |
# Press A repeatedly to choose the desired play time (1 LED = 1 min). | |
# Press B to start the clock. | |
# White player presses A after each move. | |
# Black player presses B after each move. | |
# Optional extra: if a speaker is attached, a tone sounds when time is up. | |
from microbit import * | |
import music |
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
# MUSIC SEQUENCER by Darryl Sloan (30/11/2017) | |
# Step 1: press A to toggle the first note of the desired scale, then B to select. | |
# Step 2: press A to toggle the time signature (3/4, 4/4 or 5/4), then B to select. | |
# Step 3: press A to toggle the desired number of patterns (1 to 4), then B to select. | |
# Press A to move the range of notes selected. Press B to randomise the selected notes. | |
# The direction of tilt determines which scale the random notes conform to: | |
# Left = minor; right = major; forward = minor pentatonic; backward = major pentatonic. | |
# While holding A during the first note of the sequence, tilting up/down increases/decreases the tempo, | |
# tilting left/right selects a lower/higher octave. |
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
; CONNECT 4 by Darryl Sloan, 3 July 2017 | |
org 50000 | |
last_k equ 23560 | |
ld hl, udgs ; UDGs | |
ld (23675), hl ; set up UDG system variable | |
ld a, 2 ; upper screen | |
call 5633 ; open channel |
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
# BITRIS - Copyright 2017 Darryl Sloan | |
from microbit import * | |
import neopixel | |
from random import randint | |
# Enable NeoPixels to use x & y values | |
def np_plot(x, y, r, g, b): | |
np[31-y-abs(x-3)*8] = (r, g, b) |