C++ Pixels Library For Windows
Enable communications with Pixels dice using Bluetooth Low Energy.
|
Some helper functions for Pixels. More...
Go to the source code of this file.
Namespaces | |
namespace | Systemic::Pixels |
A collection of C++ classes and types to scan for and connect to Pixels dice. | |
Functions | |
DieType | Systemic::Pixels::Helpers::getDieType (int ledCount) |
Returns the die type based on the number of LEDs. More... | |
int | Systemic::Pixels::Helpers::getFaceCount (DieType dieType) |
Returns the number of faces based on the die type. More... | |
bool | Systemic::Pixels::Helpers::isPixelChargingOrDone (PixelBatteryState batteryState) |
std::chrono::system_clock::time_point | Systemic::Pixels::Helpers::getFirmwareDate (uint32_t buildTimestamp) |
Converts a UNIX timestamp in seconds to a time_point . Use this function to get the date of a Pixels firmware from its timestamp. More... | |
Some helper functions for Pixels.
DieType Systemic::Pixels::Helpers::getDieType | ( | int | ledCount | ) |
Returns the die type based on the number of LEDs.
ledCount | Number of LEDs on Pixels die. |
int Systemic::Pixels::Helpers::getFaceCount | ( | DieType | dieType | ) |
Returns the number of faces based on the die type.
dieType | The Pixels die type. |
std::chrono::system_clock::time_point Systemic::Pixels::Helpers::getFirmwareDate | ( | uint32_t | buildTimestamp | ) |
Converts a UNIX timestamp in seconds to a time_point
. Use this function to get the date of a Pixels firmware from its timestamp.
buildTimestamp | UNIX timestamp in seconds. |
time_point
value for the given timestamp. bool Systemic::Pixels::Helpers::isPixelChargingOrDone | ( | PixelBatteryState | batteryState | ) |
batteryState |