Magzter Gold (Sitewide Promotion)
Gadget (Digital)

Gadget (Digital)

1 Issue, Issue 12

Also available on
Zinio Unlimited logo
1-month free trial

Get unlimited access to this article, this issue, + back issues & 5,000+ other magazines.

Renews at just $8.99/month after trial.

Cancel anytime.
Learn more

ANIMATE YOUR MICRO:BIT

Program the LEDS to flash in a set sequence
ANIMATE YOUR MICRO:BIT
01 Add some text Set up a new script as we did in the previous project, naming the function and selecting the third line down. Now from the code tiles select the ‘Input’ block and ‘On Button Pressed’. The default button A is shown. On the next line, select the ‘Basic’ block, this enables you to select the ‘Show String’ option. A string can consist of letters, numbers and symbols. Add your witty sentence, for example, ‘I can code a button’. Press Enter or select the tick symbol to close the edit box and add the string to your script. Click Run to test the script on the emulator. 02 Add the animation Now it’s time to add the button B function; this is essentially the same code structure as…
You're reading a preview of
Gadget (Digital) - 1 Issue, Issue 12

DiscountMags is a licensed distributor (not a publisher) of the above content and Publication through Zinio LLC. Accordingly, we have no editorial control over the Publications. Any opinions, advice, statements, services, offers or other information or content expressed or made available by third parties, including those made in Publications offered on our website, are those of the respective author(s) or publisher(s) and not of DiscountMags. DiscountMags does not guarantee the accuracy, completeness, truthfulness, or usefulness of all or any portion of any publication or any services or offers made by third parties, nor will we be liable for any loss or damage caused by your reliance on information contained in any Publication, or your use of services offered, or your acceptance of any offers made through the Service or the Publications. For content removal requests, please contact Zinio.

© 1999 – 2025 DiscountMags.com All rights reserved.