Programmere NEOPIXELS på Micro:Bit for første gang: https://youtu.be/fL_PJMQEJYM
Her kan man kjøpe strips og annet og finne tips og ideer: https://makecode.adafruit.com/#
Koble til Neopixels: https://youtu.be/1PhghS_-NYc
Hvem vil teste dette? Hentet fra https://www.playfulcomputation.group/blockytalkyble.html#
BLOCKLY TALKY BLE
BlockyTalkyBLE makes it easy to connect AppInventor mobile phone apps with the BBC micro:bit wirelessly over Bluetooth. Want to make a cat feeder that can be controlled with a remote control app on your phone? Or light up your bike with LEDs that you can change the color pattern of with voice recognition? Adding BlockyTalkyBLE to both AppInventor and micro:bit allows you to send messages and data between the devices to create cool networked applications.
Last ned og installer som utvidelse:
https://github.com/LaboratoryForPlayfulComputation/pxt-blockytalkyBLE
Forklaring: https://youtu.be/6601KlqMBdk
Se på prosjekter med Blockly talky BLE.
These projects were built by middle school girls during week-long camps in the summer of 2017. The camp curriculum included a day learning to use the micro:bit, a day learning AppInventor, and a day learning networking with BlockyTalkyBLE. The last two days were spent designing and building projects. https://www.playfulcomputation.group/blockytalkyble-projects.html
Klar til å kjøres: Lim inn på Makecode. Python-koden kan endres til blokker. Forandre koden så det passer med dine egne ideer:
item = neopixel.create(DigitalPin.P0, 12, NeoPixelMode.RGB)
def on_forever():
for index in range(10):
for index2 in range(3):
item.range(index2, 1).show_color(neopixel.colors(NeoPixelColors.RED))
item.shift(1)
item.range(index2, 1).show_color(neopixel.colors(NeoPixelColors.ORANGE))
item.shift(1)
item.range(index2, 1).show_color(neopixel.colors(NeoPixelColors.YELLOW))
basic.pause(100)
for index3 in range(10):
for index4 in range(3):
item.range(index4, 1).show_color(neopixel.colors(NeoPixelColors.RED))
item.shift(1)
item.range(index4, 1).show_color(neopixel.colors(NeoPixelColors.ORANGE))
item.shift(1)
item.range(index4, 1).show_color(neopixel.colors(NeoPixelColors.YELLOW))
item.shift(1)
item.range(index4, 1).show_color(neopixel.colors(NeoPixelColors.GREEN))
item.shift(1)
item.range(index4, 1).show_color(neopixel.colors(NeoPixelColors.BLUE))
item.shift(1)
item.range(index4, 1).show_color(neopixel.colors(NeoPixelColors.VIOLET))
item.shift(1)
item.range(index4, 1).show_color(neopixel.colors(NeoPixelColors.PURPLE))
basic.pause(100)
for index5 in range(20):
for index6 in range(3):
item.range(index6, 1).show_color(neopixel.colors(NeoPixelColors.BLUE))
item.shift(1)
basic.pause(30)
for index7 in range(30):
for index8 in range(3):
item.range(index8, 1).show_color(neopixel.colors(NeoPixelColors.PURPLE))
item.shift(1)
basic.pause(20)
basic.forever(on_forever)