{"id":6054,"date":"2021-06-03T21:10:45","date_gmt":"2021-06-04T02:10:45","guid":{"rendered":"http:\/\/stager.tv\/?p=6054"},"modified":"2021-06-03T21:21:55","modified_gmt":"2021-06-04T02:21:55","slug":"programming-neopixels-with-makecode-and-the-bbc-microbit","status":"publish","type":"post","link":"https:\/\/stager.tv\/?p=6054","title":{"rendered":"Programming Neopixels with MakeCode and the BBC micro:bit"},"content":{"rendered":"\n<h2 class=\"has-text-align-center wp-block-heading\">a messing-about primer to get you started<\/h2>\n\n\n\n<p class=\"has-text-align-center\">\u00a9 2021 Gary S. Stager, Ph.D.<\/p>\n\n\n\n<p>NeoPixels are tiny, programmable, color-changing, LEDs manufactured by&nbsp;<a href=\"http:\/\/adafruit.com\/\">AdaFruit<\/a>. NeoPixels make cool additions to micro:bit projects since they require little power, can be addressed individually or in groups, and can change color. They are especially popular in wearable projects and for creating interactive eTextiles. <\/p>\n\n\n\n<p>Best of all, there are NeoPixels extension blocks available in&nbsp;<a href=\"https:\/\/makecode.microbit.org\/\">Microsoft MakeCode<\/a>. Although MakeCode makes programming the micro:bit easy, there is too little documentation about how to control the NeoPixels.&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-verse\">The&nbsp;<strong>WS2812<\/strong>&nbsp;Integrated Light Source \u2014 or&nbsp;<strong><em>NeoPixel<\/em><\/strong>&nbsp;in Adafruit parlance \u2014 is the latest advance in the quest for a simple, scalable and affordable full-color LED. Red, green and blue LEDs are integrated alongside a driver chip into a tiny surface-mount package controlled through a single wire. They can be used individually, chained into longer strings or assembled into still more interesting form-factors.<a href=\"applewebdata:\/\/A9B36CFA-A5E6-4E96-AF93-082F5822C1A2#_ftn1\"><sup>[1]<\/sup><\/a><\/pre>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h4 class=\"has-text-align-center wp-block-heading\"><strong>Assorted NeoPixels<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-gallery columns-3 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/learn.adafruit.com\/flora-rgb-smart-pixels\/overview?gclid=Cj0KCQjw--GFBhDeARIsACH_kdbM0NYDl294iIeMhG0ldOyM5lRJz_wdgQcnDZbTOGx3vjigabjbriAaAuq4EALw_wcB\"><img loading=\"lazy\" decoding=\"async\" width=\"367\" height=\"315\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image001-1.jpg\" alt=\"\" data-id=\"6078\" data-full-url=\"https:\/\/learn.adafruit.com\/flora-rgb-smart-pixels\/overview?gclid=Cj0KCQjw--GFBhDeARIsACH_kdbM0NYDl294iIeMhG0ldOyM5lRJz_wdgQcnDZbTOGx3vjigabjbriAaAuq4EALw_wcB\" data-link=\"http:\/\/stager.tv\/?attachment_id=6078\" class=\"wp-image-6078\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image001-1.jpg 367w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image001-1-300x257.jpg 300w\" sizes=\"auto, (max-width: 367px) 100vw, 367px\" \/><\/a><figcaption class=\"blocks-gallery-item__caption\">Sewable<a href=\"https:\/\/learn.adafruit.com\/flora-rgb-smart-pixels\/overview?gclid=Cj0KCQjw--GFBhDeARIsACH_kdbM0NYDl294iIeMhG0ldOyM5lRJz_wdgQcnDZbTOGx3vjigabjbriAaAuq4EALw_wcB\"> <\/a>NeoPixels<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/www.adafruit.com\/product\/2869https:\/\/www.adafruit.com\/product\/2869\"><img loading=\"lazy\" decoding=\"async\" width=\"767\" height=\"316\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image002-1.png\" alt=\"\" data-id=\"6079\" data-full-url=\"https:\/\/www.adafruit.com\/product\/2869https:\/\/www.adafruit.com\/product\/2869\" data-link=\"http:\/\/stager.tv\/?attachment_id=6079\" class=\"wp-image-6079\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image002-1.png 767w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image002-1-300x124.png 300w\" sizes=\"auto, (max-width: 767px) 100vw, 767px\" \/><\/a><figcaption class=\"blocks-gallery-item__caption\">NeoPixel Stick<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/www.adafruit.com\/?q=neopixel+ring&amp;sort=BestMatch\"><img loading=\"lazy\" decoding=\"async\" width=\"385\" height=\"314\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image004-1.jpg\" alt=\"\" data-id=\"6081\" data-full-url=\"https:\/\/www.adafruit.com\/?q=neopixel+ring&amp;sort=BestMatch\" data-link=\"http:\/\/stager.tv\/?attachment_id=6081\" class=\"wp-image-6081\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image004-1.jpg 385w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image004-1-300x245.jpg 300w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><\/a><figcaption class=\"blocks-gallery-item__caption\">NeoPixel Ring<\/figcaption><\/figure><\/li><\/ul><\/figure>\n\n\n\n<figure class=\"wp-block-gallery columns-3 is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/www.adafruit.com\/product\/2226\"><img loading=\"lazy\" decoding=\"async\" width=\"358\" height=\"406\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image005-2.png\" alt=\"\" data-id=\"6085\" data-full-url=\"https:\/\/www.adafruit.com\/product\/2226\" data-link=\"http:\/\/stager.tv\/?attachment_id=6085\" class=\"wp-image-6085\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image005-2.png 358w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image005-2-265x300.png 265w\" sizes=\"auto, (max-width: 358px) 100vw, 358px\" \/><\/a><figcaption class=\"blocks-gallery-item__caption\">NeoPixel Jewel<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/www.adafruit.com\/product\/3812\"><img loading=\"lazy\" decoding=\"async\" width=\"376\" height=\"315\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image006-2.jpg\" alt=\"\" data-id=\"6086\" data-full-url=\"https:\/\/www.adafruit.com\/product\/3812\" data-link=\"http:\/\/stager.tv\/?attachment_id=6086\" class=\"wp-image-6086\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image006-2.jpg 376w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image006-2-300x251.jpg 300w\" sizes=\"auto, (max-width: 376px) 100vw, 376px\" \/><\/a><figcaption class=\"blocks-gallery-item__caption\">NeoPixel LED strip&nbsp;with alligator clips for easy connection to the micro:bit<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><a href=\"http:\/\/www.lectrify.it\/bitbooster\"><img loading=\"lazy\" decoding=\"async\" width=\"339\" height=\"315\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image007-2.jpg\" alt=\"\" data-id=\"6087\" data-full-url=\"http:\/\/www.lectrify.it\/bitbooster\" data-link=\"http:\/\/stager.tv\/?attachment_id=6087\" class=\"wp-image-6087\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image007-2.jpg 339w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image007-2-300x279.jpg 300w\" sizes=\"auto, (max-width: 339px) 100vw, 339px\" \/><\/a><figcaption class=\"blocks-gallery-item__caption\">bit:booster<\/figcaption><\/figure><\/li><\/ul><\/figure>\n<\/div><\/div>\n\n\n\n<p><strong>Popular NeoPixel accessory links<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/learn.adafruit.com\/flora-rgb-smart-pixels\/overview?gclid=Cj0KCQjw--GFBhDeARIsACH_kdbM0NYDl294iIeMhG0ldOyM5lRJz_wdgQcnDZbTOGx3vjigabjbriAaAuq4EALw_wcB\" target=\"_blank\" rel=\"noreferrer noopener\">Sewable NeoPixels<\/a><\/li><li><a href=\"https:\/\/www.adafruit.com\/product\/2869\" target=\"_blank\" rel=\"noreferrer noopener\">NeoPixel Stick<\/a><\/li><li><a href=\"https:\/\/www.adafruit.com\/?q=neopixel+ring&amp;sort=BestMatch\" target=\"_blank\" rel=\"noreferrer noopener\">NeoPixel Ring<\/a><\/li><li><a href=\"https:\/\/www.adafruit.com\/product\/2226\" target=\"_blank\" rel=\"noreferrer noopener\">NeoPixel Jewel<\/a><\/li><li><a href=\"https:\/\/www.adafruit.com\/product\/3812\">NeoPixel LED strip<\/a>&nbsp;with alligator clips for easy connection to the micro:bit \u2013 personal favorite<\/li><li><a href=\"http:\/\/www.lectrify.it\/bitbooster\">bit:booster<\/a><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Connecting the NeoPixels to the micro:bit<\/strong><\/h3>\n\n\n\n<p>Unless the NeoPixels are integrated into a board like the bit:booster, you will need to connect three wires to P0, P1, or P2, plus 3V and GND. The NeoPixel strips with alligator clips from Adafruit are super easy to connect because there are alligator clips already attached. Otherwise, you can figure out how to connect three wires to the micro:bit.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Adding the NeoPixel extensions to MakeCode<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Go to&nbsp;<a href=\"https:\/\/makecode.microbit.org\/\">https:\/\/makecode.microbit.org\/<\/a><\/li><li>Click Advanced \u2013 Extensions<\/li><li>Type Neopixel or click on the button for the NeoPixel extensions (if it appears on your screen)<\/li><\/ol>\n\n\n\n<p>There should now be a new set of NeoPixel blocks in the MakeCode toolbox. These blocks will save with your project, but you will need to add them again for other projects.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Programming the NeoPixels<\/strong><\/h3>\n\n\n\n<p>Once the NeoPixel extensions are installed, you may begin programming them with blocks specifically designed to control the LEDs. The first thing you need to do is tell MakeCode about your attached NeoPixel. This is initializing the environment (setting it up).<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Count the number of LEDs in your NeoPixel gizmo.<\/li><li>Create an&nbsp;on start&nbsp;block.<\/li><li>Insert a set strip to&nbsp;NeoPixel at pin\u2026 block.<\/li><li>Change the pin popup to indicate which pin you connected the NeoPixels to.<\/li><li>Change the number in the&nbsp;with ___ leds&nbsp;field to the number of LEDs in your NeoPixels.<\/li><li>Leave the&nbsp;RGB format&nbsp;popup as it is unless you are using a NeoPixel that contains white LEDs.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image008.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"155\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image008-1024x155.png\" alt=\"Graphical user interface, text, application\n\nDescription automatically generated\" class=\"wp-image-6066\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image008-1024x155.png 1024w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image008-300x46.png 300w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image008-768x117.png 768w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image008.png 1429w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Now, MakeCode will initialize the NeoPixel device whenever the program runs.<\/p>\n\n\n\n<p><strong>Note:<\/strong>&nbsp;If you connect more than one NeoPixel, MakeCode will automatically generate set blocks like the one above, but will name them&nbsp;<em>strip2, strip3,<\/em>&nbsp;etc\u2026 You also have the ability to rename the strips.<\/p>\n\n\n\n<p>You might also wish to put some indication that a new program is downloaded to the micro:bit. I like to display an icon in the&nbsp;on start&nbsp;block. When troubleshooting, I change the icon.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Add some button control<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Create the following program, predict what it will do, and download it to the micro:bit.<\/li><li>Press the A or B button and see what happens.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image009.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"442\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image009-1024x442.png\" alt=\"A screenshot of a computer\n\nDescription automatically generated with medium confidence\" class=\"wp-image-6067\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image009-1024x442.png 1024w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image009-300x129.png 300w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image009-768x331.png 768w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image009.png 1046w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>You can make a rainbow<\/strong><\/h3>\n\n\n\n<p>Show rainbow from 1 to 360 lights each pixel with a different color of the rainbow.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Try this program<\/li><\/ul>\n\n\n\n<p><em>Remember to specify how many LEDs are in your NeoPixel device.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image010.png\"><img loading=\"lazy\" decoding=\"async\" width=\"984\" height=\"497\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image010.png\" alt=\"Graphical user interface, text, application, chat or text message\n\nDescription automatically generated\" class=\"wp-image-6068\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image010.png 984w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image010-300x152.png 300w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image010-768x388.png 768w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>What does the program do?<\/li><li>What happens if you shift pixels by another number?<\/li><li>Try to shift pixels by -1. What happens?<\/li><\/ul>\n\n\n\n<p>When you ask the NeoPixels to do something specific, like shift, rotate, or light a range of LEDs, you need to force the technology to show the strip with the&nbsp;strip show&nbsp;block&nbsp;in order to make the changes visible.<\/p>\n\n\n\n<p><strong>A slight variation to try<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image011.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"517\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image011-1024x517.png\" alt=\"\" class=\"wp-image-6069\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image011-1024x517.png 1024w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image011-300x152.png 300w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image011-768x388.png 768w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image011.png 1055w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>How is rotating pixels different from shifting them?<\/li><li>Try different values for rotating pixels. What happens?<\/li><li>Try rotating pixels by half of the number of pixels you have. What happens?<\/li><li>What happens if you reduce the number 360 in the&nbsp;show rainbow from 1 to 360&nbsp;block in&nbsp;on start?<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Do the twist<\/strong><\/h3>\n\n\n\n<p>In this next program, we use the acceleration value (found in the Input tools) to send the pixels in one direction or the opposite when the micro:bit is tilted left or right.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image012.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"742\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image012-1024x742.png\" alt=\"\" class=\"wp-image-6070\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image012-1024x742.png 1024w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image012-300x217.png 300w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image012-768x556.png 768w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image012.png 1429w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Create the program above<\/li><li>Download it to the micro:bit<\/li><li>Tilt the micro:bit left or right<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Be specific<\/strong><\/h3>\n\n\n\n<p>You may use the set pixel color at block (found in the \u2026 section of the NeoPixel blocks in the toolbox). This block allows you to specify the color of a specific pixel. Remember to use the show block to display the changes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image013.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"453\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image013-1024x453.png\" alt=\"A screenshot of a computer\n\nDescription automatically generated with medium confidence\" class=\"wp-image-6071\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image013-1024x453.png 1024w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image013-300x133.png 300w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image013-768x340.png 768w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image013.png 1080w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>So random<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Make the following modification to the program above.<\/li><li>After you insert the pick random variable and use the range 0 to your number of pixels \u2013 1.<\/li><li>Download the program to the micro:bit.<\/li><li>Press button A repeatedly.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image014.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"454\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image014-1024x454.png\" alt=\"A screenshot of a computer\n\nDescription automatically generated with medium confidence\" class=\"wp-image-6072\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image014-1024x454.png 1024w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image014-300x133.png 300w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image014-768x340.png 768w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image014.png 1140w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Ho! Ho! Ho!<\/strong><\/h3>\n\n\n\n<p>Imagine a 12 light NeoPixel ring. The following program turns it into a push button wreath.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image015.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"645\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image015-1024x645.png\" alt=\"Graphical user interface, text, application, chat or text message\n\nDescription automatically generated\" class=\"wp-image-6073\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image015-1024x645.png 1024w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image015-300x189.png 300w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image015-768x483.png 768w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image015.png 1201w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/IMG_0152-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/IMG_0152-1024x768.jpg\" alt=\"\" class=\"wp-image-6075\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/IMG_0152-1024x768.jpg 1024w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/IMG_0152-300x225.jpg 300w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/IMG_0152-768x576.jpg 768w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/IMG_0152-1536x1152.jpg 1536w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/IMG_0152-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>NeoPixel Ring wreath<\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Press A or B and see what happens.<\/li><li>Does the code make sense?<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Within range<\/strong><\/h3>\n\n\n\n<p>In this program, we want to define a range or region of LEDs in the NeoPixel as a variable in order to change that entire range at once.<\/p>\n\n\n\n<p>We will use the&nbsp;set range&nbsp;block from the NeoPixel blocks in the toolbox. However, we want to set two different ranges of LEDs. So, for the second set range block, we will select the&nbsp;set range&nbsp;block a second time from the NewPixel block palette and MakeCode will add a new&nbsp;set range2&nbsp;block to the workspace. Do it again and we\u2019ll get range3, etc\u2026 In other words, each time you request a&nbsp;set range&nbsp;block, MakeCode automatically creates a new variable.<\/p>\n\n\n\n<p>Set range and its siblings takes two inputs \u2013 the LED position where you wish to begin and how many LEDs should be included in that range. For example, if I have a 12 LED NeoPixel that I wish to divide, I might try a program like the following.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image016.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"http:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image016-1024x576.png\" alt=\"A screenshot of a computer\n\nDescription automatically generated with medium confidence\" class=\"wp-image-6074\" srcset=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image016-1024x576.png 1024w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image016-300x169.png 300w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image016-768x432.png 768w, https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image016.png 1097w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>What does this program do?<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Challenges<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Explore these new NeoPixel blocks in different ways.&nbsp;<\/li><li>Try new values.<\/li><li>Can you create numerical light patterns, like odd and even numbers or multiples?<\/li><li>What can you decorate with NeoPixels?<\/li><\/ul>\n\n\n\n<p>Be sure to share your MakeCode projects online so others can learn from them!<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><a href=\"applewebdata:\/\/A9B36CFA-A5E6-4E96-AF93-082F5822C1A2#_ftnref1\"><sup>[1]<\/sup><\/a>&nbsp;https:\/\/learn.adafruit.com\/adafruit-neopixel-uberguide\/the-magic-of-neopixels<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NeoPixels are tiny, programmable, color-changing, LEDs manufactured by AdaFruit. NeoPixels make cool additions to micro:bit projects since they require little power, can be addressed individually or in groups, and can change color. Although MakeCode makes programming the micro:bit easy, there was too little documentation about how to control the NeoPixels until now. <\/p>\n","protected":false},"author":2,"featured_media":6083,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[479,430,434,429,431,438],"tags":[1790,547,1789,1791,440,1792,894,548,485,1703,1795,1525,1793,1794,1020,1599,1580,1797,1796,1467,754,1798,1227],"class_list":["post-6054","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-11-computing","category-creativity","category-learning","category-project-based-learning","category-teaching","category-technology","tag-adafruit","tag-art","tag-bbs-microbit","tag-block-progrmming","tag-constructing-modern-knowledge","tag-css4all","tag-design","tag-edtech","tag-educational-computing","tag-electronics","tag-electronics-for-kids","tag-etextiles","tag-led-strips","tag-leds","tag-lilypad-arduino","tag-makecode","tag-microsoft-makecode","tag-neopixel-rings","tag-neopixels","tag-physical-computing","tag-robotics","tag-soft-circuits","tag-wearable-computing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Programming Neopixels with MakeCode and the BBC micro:bit - Stager-to-Go<\/title>\n<meta name=\"description\" content=\"NeoPixels are super cool and work really well with the micro:bit. Here is some needed advice on programming the micro:bit to control NeoPixels in MakeCode.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/stager.tv\/?p=6054\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How-to program NeoPixels with MakeCode &amp; BBC micro:bit\" \/>\n<meta property=\"og:description\" content=\"NeoPixels are super cool and work really well with the micro:bit. Here is some needed advice on programming the micro:bit to control NeoPixels in MakeCode.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/stager.tv\/?p=6054\" \/>\n<meta property=\"og:site_name\" content=\"Stager-to-Go\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/gary.stager\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-04T02:10:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-04T02:21:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image006-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"376\" \/>\n\t<meta property=\"og:image:height\" content=\"315\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Gary Stager\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How-to program NeoPixels with MakeCode &amp; BBC micro:bit\" \/>\n<meta name=\"twitter:description\" content=\"NeoPixels are super cool and work really well with the micro:bit. Here is some needed advice on programming the micro:bit to control NeoPixels in MakeCode.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image006-2.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@garystager\" \/>\n<meta name=\"twitter:site\" content=\"@garystager\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gary Stager\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/stager.tv\\\/?p=6054#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/stager.tv\\\/?p=6054\"},\"author\":{\"name\":\"Gary Stager\",\"@id\":\"http:\\\/\\\/stager.tv\\\/#\\\/schema\\\/person\\\/8bd320bea4758fc56f376ecdd9b8b184\"},\"headline\":\"Programming Neopixels with MakeCode and the BBC micro:bit\",\"datePublished\":\"2021-06-04T02:10:45+00:00\",\"dateModified\":\"2021-06-04T02:21:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/stager.tv\\\/?p=6054\"},\"wordCount\":1075,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/stager.tv\\\/?p=6054#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/stager.tv\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/image006-1.jpg\",\"keywords\":[\"ADAFRUIT\",\"art\",\"BBS MICRO:BIT\",\"BLOCK PROGRMMING\",\"constructing modern knowledge\",\"CSS4ALL\",\"design\",\"edtech\",\"educational computing\",\"electronics\",\"ELECTRONICS FOR KIDS\",\"etextiles\",\"LED STRIPS\",\"LEDS\",\"lilypad arduino\",\"makecode\",\"Microsoft MakeCode\",\"NEOPIXEL RINGS\",\"NEOPIXELS\",\"physical computing\",\"robotics\",\"soft circuits\",\"wearable computing\"],\"articleSection\":[\"1:1 computing\",\"creativity\",\"learning\",\"project-based learning\",\"teaching\",\"technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/stager.tv\\\/?p=6054#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/stager.tv\\\/?p=6054\",\"url\":\"https:\\\/\\\/stager.tv\\\/?p=6054\",\"name\":\"Programming Neopixels with MakeCode and the BBC micro:bit - Stager-to-Go\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/stager.tv\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/stager.tv\\\/?p=6054#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/stager.tv\\\/?p=6054#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/stager.tv\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/image006-1.jpg\",\"datePublished\":\"2021-06-04T02:10:45+00:00\",\"dateModified\":\"2021-06-04T02:21:55+00:00\",\"author\":{\"@id\":\"http:\\\/\\\/stager.tv\\\/#\\\/schema\\\/person\\\/8bd320bea4758fc56f376ecdd9b8b184\"},\"description\":\"NeoPixels are super cool and work really well with the micro:bit. Here is some needed advice on programming the micro:bit to control NeoPixels in MakeCode.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/stager.tv\\\/?p=6054#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/stager.tv\\\/?p=6054\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/stager.tv\\\/?p=6054#primaryimage\",\"url\":\"https:\\\/\\\/stager.tv\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/image006-1.jpg\",\"contentUrl\":\"https:\\\/\\\/stager.tv\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/image006-1.jpg\",\"width\":376,\"height\":315},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/stager.tv\\\/?p=6054#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/stager.tv\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Programming Neopixels with MakeCode and the BBC micro:bit\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/stager.tv\\\/#website\",\"url\":\"http:\\\/\\\/stager.tv\\\/\",\"name\":\"Stager-to-Go\",\"description\":\"The personal blog of Gary S. Stager, Ph.D.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\\\/\\\/stager.tv\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/stager.tv\\\/#\\\/schema\\\/person\\\/8bd320bea4758fc56f376ecdd9b8b184\",\"name\":\"Gary Stager\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/stager.tv\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/Gary-gravatar.png\",\"url\":\"https:\\\/\\\/stager.tv\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/Gary-gravatar.png\",\"contentUrl\":\"https:\\\/\\\/stager.tv\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/Gary-gravatar.png\",\"caption\":\"Gary Stager\"},\"description\":\"Veteran educator Gary Stager, Ph.D. is the author of Twenty Things to Do with a Computer - Forward 50, co-author of\u00a0Invent To Learn \u2014 Making, Tinkering, and Engineering in the Classroom, publisher at\u00a0Constructing Modern Knowledge Press,\u00a0and the founder of the\u00a0Constructing Modern Knowledge\u00a0summer institute. He led professional development in the world\u2019s first 1:1 laptop schools thirty years ago and designed one of the oldest online graduate school programs. Gary is also the curator of The Seymour Papert archives at DailyPapert.com. Learn more about\u00a0Gary here.\",\"sameAs\":[\"http:\\\/\\\/cmkpress.com\\\/gary\"],\"url\":\"https:\\\/\\\/stager.tv\\\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Programming Neopixels with MakeCode and the BBC micro:bit - Stager-to-Go","description":"NeoPixels are super cool and work really well with the micro:bit. Here is some needed advice on programming the micro:bit to control NeoPixels in MakeCode.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/stager.tv\/?p=6054","og_locale":"en_US","og_type":"article","og_title":"How-to program NeoPixels with MakeCode & BBC micro:bit","og_description":"NeoPixels are super cool and work really well with the micro:bit. Here is some needed advice on programming the micro:bit to control NeoPixels in MakeCode.","og_url":"https:\/\/stager.tv\/?p=6054","og_site_name":"Stager-to-Go","article_publisher":"https:\/\/www.facebook.com\/gary.stager\/","article_published_time":"2021-06-04T02:10:45+00:00","article_modified_time":"2021-06-04T02:21:55+00:00","og_image":[{"width":376,"height":315,"url":"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image006-2.jpg","type":"image\/jpeg"}],"author":"Gary Stager","twitter_card":"summary_large_image","twitter_title":"How-to program NeoPixels with MakeCode & BBC micro:bit","twitter_description":"NeoPixels are super cool and work really well with the micro:bit. Here is some needed advice on programming the micro:bit to control NeoPixels in MakeCode.","twitter_image":"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image006-2.jpg","twitter_creator":"@garystager","twitter_site":"@garystager","twitter_misc":{"Written by":"Gary Stager","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/stager.tv\/?p=6054#article","isPartOf":{"@id":"https:\/\/stager.tv\/?p=6054"},"author":{"name":"Gary Stager","@id":"http:\/\/stager.tv\/#\/schema\/person\/8bd320bea4758fc56f376ecdd9b8b184"},"headline":"Programming Neopixels with MakeCode and the BBC micro:bit","datePublished":"2021-06-04T02:10:45+00:00","dateModified":"2021-06-04T02:21:55+00:00","mainEntityOfPage":{"@id":"https:\/\/stager.tv\/?p=6054"},"wordCount":1075,"commentCount":0,"image":{"@id":"https:\/\/stager.tv\/?p=6054#primaryimage"},"thumbnailUrl":"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image006-1.jpg","keywords":["ADAFRUIT","art","BBS MICRO:BIT","BLOCK PROGRMMING","constructing modern knowledge","CSS4ALL","design","edtech","educational computing","electronics","ELECTRONICS FOR KIDS","etextiles","LED STRIPS","LEDS","lilypad arduino","makecode","Microsoft MakeCode","NEOPIXEL RINGS","NEOPIXELS","physical computing","robotics","soft circuits","wearable computing"],"articleSection":["1:1 computing","creativity","learning","project-based learning","teaching","technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/stager.tv\/?p=6054#respond"]}]},{"@type":"WebPage","@id":"https:\/\/stager.tv\/?p=6054","url":"https:\/\/stager.tv\/?p=6054","name":"Programming Neopixels with MakeCode and the BBC micro:bit - Stager-to-Go","isPartOf":{"@id":"http:\/\/stager.tv\/#website"},"primaryImageOfPage":{"@id":"https:\/\/stager.tv\/?p=6054#primaryimage"},"image":{"@id":"https:\/\/stager.tv\/?p=6054#primaryimage"},"thumbnailUrl":"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image006-1.jpg","datePublished":"2021-06-04T02:10:45+00:00","dateModified":"2021-06-04T02:21:55+00:00","author":{"@id":"http:\/\/stager.tv\/#\/schema\/person\/8bd320bea4758fc56f376ecdd9b8b184"},"description":"NeoPixels are super cool and work really well with the micro:bit. Here is some needed advice on programming the micro:bit to control NeoPixels in MakeCode.","breadcrumb":{"@id":"https:\/\/stager.tv\/?p=6054#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/stager.tv\/?p=6054"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/stager.tv\/?p=6054#primaryimage","url":"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image006-1.jpg","contentUrl":"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image006-1.jpg","width":376,"height":315},{"@type":"BreadcrumbList","@id":"https:\/\/stager.tv\/?p=6054#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/stager.tv\/"},{"@type":"ListItem","position":2,"name":"Programming Neopixels with MakeCode and the BBC micro:bit"}]},{"@type":"WebSite","@id":"http:\/\/stager.tv\/#website","url":"http:\/\/stager.tv\/","name":"Stager-to-Go","description":"The personal blog of Gary S. Stager, Ph.D.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/stager.tv\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/stager.tv\/#\/schema\/person\/8bd320bea4758fc56f376ecdd9b8b184","name":"Gary Stager","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/stager.tv\/wp-content\/uploads\/2024\/03\/Gary-gravatar.png","url":"https:\/\/stager.tv\/wp-content\/uploads\/2024\/03\/Gary-gravatar.png","contentUrl":"https:\/\/stager.tv\/wp-content\/uploads\/2024\/03\/Gary-gravatar.png","caption":"Gary Stager"},"description":"Veteran educator Gary Stager, Ph.D. is the author of Twenty Things to Do with a Computer - Forward 50, co-author of\u00a0Invent To Learn \u2014 Making, Tinkering, and Engineering in the Classroom, publisher at\u00a0Constructing Modern Knowledge Press,\u00a0and the founder of the\u00a0Constructing Modern Knowledge\u00a0summer institute. He led professional development in the world\u2019s first 1:1 laptop schools thirty years ago and designed one of the oldest online graduate school programs. Gary is also the curator of The Seymour Papert archives at DailyPapert.com. Learn more about\u00a0Gary here.","sameAs":["http:\/\/cmkpress.com\/gary"],"url":"https:\/\/stager.tv\/?author=2"}]}},"jetpack_featured_media_url":"https:\/\/stager.tv\/wp-content\/uploads\/2021\/06\/image006-1.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/stager.tv\/index.php?rest_route=\/wp\/v2\/posts\/6054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stager.tv\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stager.tv\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stager.tv\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/stager.tv\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6054"}],"version-history":[{"count":5,"href":"https:\/\/stager.tv\/index.php?rest_route=\/wp\/v2\/posts\/6054\/revisions"}],"predecessor-version":[{"id":6097,"href":"https:\/\/stager.tv\/index.php?rest_route=\/wp\/v2\/posts\/6054\/revisions\/6097"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stager.tv\/index.php?rest_route=\/wp\/v2\/media\/6083"}],"wp:attachment":[{"href":"https:\/\/stager.tv\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stager.tv\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stager.tv\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}