C++ Pixels Library For Windows
Enable communications with Pixels dice using Bluetooth Low Energy.
|
Data periodically emitted by a Pixel when not connected to a device. More...
#include <ScannedPixel.h>
Public Member Functions | |
ScannedPixel (const ScannedPixelData &data) | |
Initializes a new instance of ScannedPixel with the given data. | |
virtual | ~ScannedPixel ()=default |
Default virtual destructor. | |
virtual bluetooth_address_t | systemId () const override |
Gets the unique id assigned by the OS to Pixel Bluetooth peripheral. More... | |
virtual bluetooth_address_t | address () const override |
Gets the Bluetooth address of the Pixel. More... | |
virtual pixel_id_t | pixelId () const override |
Gets the unique Pixel id of the die. More... | |
virtual const std::wstring & | name () const override |
Gets the Pixel name. More... | |
virtual int | ledCount () const override |
Gets the number of LEDs of the Pixel. More... | |
virtual PixelDesignAndColor | designAndColor () const override |
Gets the design and color of the Pixel. More... | |
virtual Date | firmwareDate () const override |
Gets the firmware build date of the Pixel. More... | |
virtual int | rssi () const override |
Gets the last RSSI value measured by the Pixel. More... | |
virtual int | batteryLevel () const override |
Gets the Pixel battery level (percentage). More... | |
virtual bool | isCharging () const override |
Indicates whether the Pixel battery is charging or not. Set to 'true' if fully charged but still on charger. More... | |
virtual PixelRollState | rollState () const override |
Gets the Pixel roll state. More... | |
virtual int | currentFace () const override |
Gets the Pixel face value that is currently facing up. More... | |
![]() | |
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... | |
Public Attributes | |
ScannedPixelData | data {} |
The raw data of the instance. | |
Additional Inherited Members | |
![]() | |
using | Date = std::chrono::system_clock::time_point |
Type for a system Date. | |
Data periodically emitted by a Pixel when not connected to a device.
|
overridevirtual |
Gets the Bluetooth address of the Pixel.
Implements Systemic::Pixels::PixelInfo.
|
overridevirtual |
Gets the Pixel battery level (percentage).
Implements Systemic::Pixels::PixelInfo.
|
overridevirtual |
Gets the Pixel face value that is currently facing up.
Implements Systemic::Pixels::PixelInfo.
|
overridevirtual |
Gets the design and color of the Pixel.
Implements Systemic::Pixels::PixelInfo.
|
overridevirtual |
Gets the firmware build date of the Pixel.
Implements Systemic::Pixels::PixelInfo.
|
overridevirtual |
Indicates whether the Pixel battery is charging or not. Set to 'true' if fully charged but still on charger.
Implements Systemic::Pixels::PixelInfo.
|
overridevirtual |
Gets the number of LEDs of the Pixel.
Implements Systemic::Pixels::PixelInfo.
|
overridevirtual |
|
overridevirtual |
Gets the unique Pixel id of the die.
Implements Systemic::Pixels::PixelInfo.
|
overridevirtual |
|
overridevirtual |
Gets the last RSSI value measured by the Pixel.
Implements Systemic::Pixels::PixelInfo.
|
overridevirtual |
Gets the unique id assigned by the OS to Pixel Bluetooth peripheral.
Implements Systemic::Pixels::PixelInfo.