C++ Pixels Library For Windows
Enable communications with Pixels dice using Bluetooth Low Energy.
|
Common accessible values between Pixel advertised data and a connected Pixel. More...
#include <PixelInfo.h>
Public Types | |
using | Date = std::chrono::system_clock::time_point |
Type for a system Date. | |
Public Member Functions | |
virtual bluetooth_address_t | systemId () const =0 |
Gets the unique id assigned by the OS to Pixel Bluetooth peripheral. More... | |
virtual bluetooth_address_t | address () const =0 |
Gets the Bluetooth address of the Pixel. More... | |
virtual pixel_id_t | pixelId () const =0 |
Gets the unique Pixel id of the die. More... | |
virtual const std::wstring & | name () const =0 |
Gets the Pixel name. More... | |
virtual int | ledCount () const =0 |
Gets the number of LEDs of the Pixel. More... | |
virtual PixelDesignAndColor | designAndColor () const =0 |
Gets the design and color of the Pixel. More... | |
virtual Date | firmwareDate () const =0 |
Gets the firmware build date of the Pixel. More... | |
virtual int | rssi () const =0 |
Gets the last RSSI value measured by the Pixel. More... | |
virtual int | batteryLevel () const =0 |
Gets the Pixel battery level (percentage). More... | |
virtual bool | isCharging () const =0 |
Indicates whether the Pixel battery is charging or not. Set to 'true' if fully charged but still on charger. More... | |
virtual PixelRollState | rollState () const =0 |
Gets the Pixel roll state. More... | |
virtual int | currentFace () const =0 |
Gets the Pixel face value that is currently facing up. More... | |
DieType | dieType () |
Gets die type of the Pixel. More... | |
int | dieFaceCount () |
Gets the number of faces of the Pixel. More... | |
|
pure virtual |
Gets the Bluetooth address of the Pixel.
Implemented in Systemic::Pixels::Pixel, and Systemic::Pixels::ScannedPixel.
|
pure virtual |
Gets the Pixel battery level (percentage).
Implemented in Systemic::Pixels::Pixel, and Systemic::Pixels::ScannedPixel.
|
pure virtual |
Gets the Pixel face value that is currently facing up.
Implemented in Systemic::Pixels::Pixel, and Systemic::Pixels::ScannedPixel.
|
pure virtual |
Gets the design and color of the Pixel.
Implemented in Systemic::Pixels::Pixel, and Systemic::Pixels::ScannedPixel.
int Systemic::Pixels::PixelInfo::dieFaceCount | ( | ) |
|
pure virtual |
Gets the firmware build date of the Pixel.
Implemented in Systemic::Pixels::Pixel, and Systemic::Pixels::ScannedPixel.
|
pure virtual |
Indicates whether the Pixel battery is charging or not. Set to 'true' if fully charged but still on charger.
Implemented in Systemic::Pixels::Pixel, and Systemic::Pixels::ScannedPixel.
|
pure virtual |
Gets the number of LEDs of the Pixel.
Implemented in Systemic::Pixels::Pixel, and Systemic::Pixels::ScannedPixel.
|
pure virtual |
Gets the Pixel name.
Implemented in Systemic::Pixels::Pixel, and Systemic::Pixels::ScannedPixel.
|
pure virtual |
Gets the unique Pixel id of the die.
Implemented in Systemic::Pixels::Pixel, and Systemic::Pixels::ScannedPixel.
|
pure virtual |
Gets the Pixel roll state.
Implemented in Systemic::Pixels::Pixel, and Systemic::Pixels::ScannedPixel.
|
pure virtual |
Gets the last RSSI value measured by the Pixel.
Implemented in Systemic::Pixels::Pixel, and Systemic::Pixels::ScannedPixel.
|
pure virtual |
Gets the unique id assigned by the OS to Pixel Bluetooth peripheral.
Implemented in Systemic::Pixels::Pixel, and Systemic::Pixels::ScannedPixel.