Diana Khalipina
Published © GPL3+

Accessible FocusFlow – color & sound for work rhythms

Work smarter, rest better — this accessible micro:bit project uses light & music to gently guide your energy and focus through work phases

BeginnerFull instructions provided1 hour316
Accessible FocusFlow – color & sound for work rhythms

Things used in this project

Story

Read more

Schematics

Schematics of how to connect hardware for the project FocusFlow

Code

Detailed code of the project FocusFlow

MicroPython
from microbit import *
import neopixel
import music

NP_LED_COUNT_0 = 30

# Neopixel on pin0
np_0 = neopixel.NeoPixel(pin0, NP_LED_COUNT_0)
# Buzzer on pin_speaker

def neopixel_showAllLed(neoPx, ledCount, R, G, B):
  for i in range(ledCount):
    neoPx[i] = (R, G, B)
  neoPx.show()

neopixel_showAllLed(np_0, NP_LED_COUNT_0, 51, 204, 0)
for_in range(37)
music.play(music.ODE, loop=False)
neopixel_showAllLed(np_0, NP_LED_COUNT_0, 51, 102, 255)
for_in range(134)
music.play(music.PRELUDE, loop=False)
neopixel_showAllLed(np_0, NP_LED_COUNT_0, 255, 153, 0)
for_in range(267)
music.play(music.FUNK, loop=False)
neopixel_showAllLed(np_0, NP_LED_COUNT_0, 102, 51, 255)
for_in range(75)
music.play(['c:8', 'd:8', 'e:8'])
music.play(['f:8', 'g:8', 'a:8'])
music.play(['b:8', 'c5:8', 'r:8'])

Credits

Diana Khalipina
24 projects • 97 followers
Integrating Web Accessibility in Healthcare Tech | Web Developer & Bioengineering Specialist in Paris | MSc in Biomedical Engineering

Comments