> For the complete documentation index, see [llms.txt](https://resources.digitalmoment.org/micro-bit-data-and-climate-change/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resources.digitalmoment.org/micro-bit-data-and-climate-change/showcase-projects/05-greenhouse-gas-emission/b-neopixel-fairy-lights.md).

# B - Neopixel Fairy Lights

### Neopixel Fairy LightsActivity

In this activity we are neopixel fairy lights to visualize carbon dioxide emissions from each province from 2009 to 2019:

### **Materials**

<table><thead><tr><th width="226">Quantity</th><th>Material</th></tr></thead><tbody><tr><td>1</td><td>micro:bit</td></tr><tr><td>1</td><td>battery pack</td></tr><tr><td>1</td><td>set of 3 alligator clips to M connector </td></tr><tr><td>1</td><td>neopixel grid</td></tr><tr><td>1</td><td>pre-cut cardstock sheet</td></tr></tbody></table>

{% hint style="info" %}
Data used for this activity [**DATA**](https://www150.statcan.gc.ca/n1/pub/71-607-x/71-607-x2020008-eng.htm)
{% endhint %}

### **Assembly Instructions**

<figure><img src="/files/dsjLkhtHfXjMRpgNeqHw" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/OJ4tDx1V0CpBcNinuzAT" alt=""><figcaption></figcaption></figure>

### **Functionality**

#### **micro:bit A Button**

* Move forward to different years from 2009 to 2019.
* Each year is represented by a lit LED on the micro:bit.

#### micro:bit B Button

* Move back to different years from 2009 to 2019.
* Each year is represented by a lit LED on the micro:bit.

#### Neopixel Fairy Lights

* One of the rows of the neopixel has colour lights representing different levels.
  * 🟢 green - Safe.
  * :yellow\_circle: yellow - Caution.
  * :red\_circle: red - Danger.
* Provinces location on the Fairy Light from left to right:  Ontario, Saskatchewan, Yukon, Quebec, Manitoba, British Columbia, Alberta, New Brunswick, Newfoundland and Labrador, Northwest Territories, Nova Scotia, PEI, Nunavut.

{% hint style="success" %}
MakeCode project - **Canada** - [**LINK**](https://makecode.microbit.org/_77UXdWg0H6WK)&#x20;

Find more projects at our partner's website [SteamLabs](https://steamlabs.ca/data-visualization/)
{% endhint %}

So much knowledge, so many ideas, congratulations on going over all the projects!
