Programming The BBC Micro:Bit For NeoPixels | Tutorial Accompanying Video

  Рет қаралды 5,294

TheMakersWorkbench

TheMakersWorkbench

Күн бұрын

Пікірлер: 7
@yes_man_lol
@yes_man_lol Жыл бұрын
Yes, if you have time please make more microbit tutorial, if can use MQTT with esp8266 + microbit, it will be good, there are some using low powered bluetooth with microbit and pi, but not common.
@nickrattigan7704
@nickrattigan7704 4 жыл бұрын
Nice project please do some more animations
@mikejb2009a
@mikejb2009a 5 жыл бұрын
Below is the code used in the above tutorial. It is in Java script you can see it in blocks if you want, just switch to blocks. Before cut and pasting it in load "neopixel extension" I made a change at "set pixel color at " and got good results. let z = 0 let y = 0 let x = 0 let strip = neopixel.create(DigitalPin.P0, 24, NeoPixelMode.RGB) let mode = true input.setAccelerometerRange(AcceleratorRange.EightG) strip.clear() strip.setBrightness(255) while (true) { if (input.buttonIsPressed(Button.A)) { mode = true basic.showLeds(` . . # . . . # # . . . . # . . . . # . . . # # # . `) } else { if (input.buttonIsPressed(Button.B)) { mode = false basic.showLeds(` . # # # . . . . # . . # # # . . # . . . . # # # . `) } if (mode == true) { strip.showRainbow(1, 360) } else { if (mode == false) { x = input.acceleration(Dimension.Y) - 55 y = input.acceleration(Dimension.X) * 2 z = input.acceleration(Dimension.Z) * 2 strip.setPixelColor(0, neopixel.rgb(x, y, z)) strip.shift(1) strip.show() basic.pause(50) } } } }
@mikejb2009a
@mikejb2009a 5 жыл бұрын
AT the "set micro pixel color at" line I thought it was a change sign bug but multiply "**" makes it work to. The source code for that block is probably on GitHub .......
@davidbooth3319
@davidbooth3319 6 жыл бұрын
Great Tutorial by please show us it working!
@davidbooth3319
@davidbooth3319 6 жыл бұрын
The download can not be edited in the new makecode Block editor which is a pity. This may be an issue with the new editor or with the code?
@Themakersworkbench
@Themakersworkbench 6 жыл бұрын
I believe the new editor is the issue.
MicroPython for Micro:bit - Analogue Inputs and Outputs
10:47
Core Electronics
Рет қаралды 6 М.
Micro:Bit, A Simple Board for Props and Cosplay
10:59
Garrick Backer
Рет қаралды 2,2 М.
Colorful Pasta Painting for Fun Times! 🍝 🎨
00:29
La La Learn
Рет қаралды 308 МЛН
UFC 308 : Уиттакер VS Чимаев
01:54
Setanta Sports UFC
Рет қаралды 922 М.
Micro bit   LEDs Day 2
32:15
Brian Ashline
Рет қаралды 202
Programming a Servo with the micro:bit and MakeCode
11:04
Dawn DuPriest
Рет қаралды 31 М.
«Осень». Самая большая загадка Windows XP
14:36
Девять десятых
Рет қаралды 926 М.
Natasha's NeoPixel LED Bike✨ // Creative LEDs *10*
17:17
TechnoChic / Natasha Dzurny
Рет қаралды 3,6 М.
Breakout Board for the BBC micro:bit
3:01
Kitronik
Рет қаралды 34 М.
I Have 2 Weeks to File a Dispute for this Scam TV
25:35
Linus Tech Tips
Рет қаралды 1,4 МЛН
Вот что умеет SSH!!! Более 9 фичей!!!
21:51
Realtime User
Рет қаралды 30 М.
Creating a POWERFUL Generator for Winters EASY DIY Tutorial!
38:02
World Of Electronics Technology
Рет қаралды 80
Colorful Pasta Painting for Fun Times! 🍝 🎨
00:29
La La Learn
Рет қаралды 308 МЛН