> 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/04-heavy-precipitation-days/c-neopixel-fairy-lights.md).

# C-Neopixel Fairy Lights

### Neopixel Fairy Lights Activity

With the neopixel fairy lights, we are visualizing precipitation data, as simulated raindrops.  There are three levels of precipitation, each represented by a different colour:

* Orange = Low precipitation.
* Light Blue = Moderate precipitation.
* Blue = High precipitation.&#x20;

### **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 fairy lights</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://climateatlas.ca/map/canada/annual_precip_baseline#lat=63.94\&lng=-82.97\&z=4)
{% endhint %}

### **Assembly Instructions**

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

<figure><img src="/files/0i1BGNqb2IowIGLS7gCo" alt=""><figcaption></figcaption></figure>

### **Functionality**

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

* Cycle through the three different **time** **periods** programmed.
* Each time the period is represented by a lit LED on the micro:bit.

#### micro:bit B Button

* Cycle through the three different **years** within the time period.
* Each year is represented by a lit LED on the micro:bit.

#### **micro:bit A+B Buttons**

* Toggle between low and high-carbon **scenarios** for the Immediate Future and the Near Future scenarios.

#### Fairy Light

* Display different pulsating colours to represent various levels of precipitation.

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

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

In the next section, we embark on a new concept, **Greenhouse Gas Emissions**.
