Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

Windows 10 IoT Core UWP app that works great with the Pimoroni RainbowHAT

License

Notifications You must be signed in to change notification settings

tscholze/dotnet-iot-homebear-rainbow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HomeBear.Rainbow

Windows 10 IoT Core UWP app that works great with the Pimoroni RainbowHAT. The app is in a final state. No maintenance effort planned.

Prerequirements

How it looks

At the moment, it's just a headless application that is controlled by the input controls of the RainbowHAT.

Device

Features

  • 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.

Usage

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.

Known issues

  • 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.

Ideas for the future

  • Connect to Azure IoT Hub
  • Rework as background process
  • XAML UI to control the Rainbow HAT

Publications

Contributing

Feel free to improve the quality of the code. It would be great to learn more from experienced C#, UWP and IoT developers.

Authors

Just me, Tobi.

Thanks to

License

This project is licensed under the MIT License - see the LICENSE file for details. Dependencies or assets maybe licensed differently.

About

Windows 10 IoT Core UWP app that works great with the Pimoroni RainbowHAT

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages