Windows 10 IoT Core UWP app that works great with the Pimoroni RainbowHAT. The app is in a final state. No maintenance effort planned.
- Windows 10
- Visual Studio 2019
- Raspbbery Pi 3 (B) with Windows 10 IoT Core 17763 or higher
- Enabled Dynamic driver mode in Windows 10 IoT Core
- Pimoroni Rainbow HAT
At the moment, it's just a headless application that is controlled by the input controls of the RainbowHAT.
- Control the large R, G, B LEDs
- Listen to 'A', 'B', 'C' capacitive touch buttons
- Piezo buzzer
- APA102 to control seven multicolor LEDs
- HT16K33 14-segment alphanumeric displays
- BMP280 temperature sensor
- BMP280 pressure sensor
Keep in mind
- All features have room for improvements.
- All values could be wrong. Please report mismatches measurements.
Information
Most of the logic behind is based on the offical Python libraries.
Use the an instance of the RainbowHAT
to controll the HAT, regardless what sub-controller (APA102, BMP280, HT16K33) you want to control.
Listen on events to get values back from the HAT.
Call the PerformAction
method to execute specified actions on the Pi's HAT.
// Setup event callbacks.
rainbowHAT.CaptiveButtonPressed += CaptiveButtonPressed;
rainbowHAT.TemperatureMeasured += TemperaturMeassured;
rainbowHAT.PressureMeasured += PressureMeasured;
// Perform actions
rainbowHAT.PerformAction(RainbowHATAction.ShowDemo);
Keep an eye on the debug output. If something went wrong, it should be logged to it.
- Due to the narrowness of the temperature sensor the the Pi's CPU, it meassures more heat as actual value should be
- App gets randomly terminated.
- Connect to Azure IoT Hub
- Rework as background process
- XAML UI to control the Rainbow HAT
- Personal Blog: [Raspberry Pi] Windows 10 IoT Core + Pimoroni Rainbow HAT = <3
- Dr. Windows: Windows 10 IoT Core: Perfekt für Maker und Hobbyisten
Feel free to improve the quality of the code. It would be great to learn more from experienced C#, UWP and IoT developers.
Just me, Tobi.
- Pimoroni Discord Community
- Stackoverflow User michael-xu-msft
- Pimoroni Python source
- Microsoft IoT Samples
This project is licensed under the MIT License - see the LICENSE file for details. Dependencies or assets maybe licensed differently.