C++ Pixels Library For Windows
Enable communications with Pixels dice using Bluetooth Low Energy.
Loading...
Searching...
No Matches
PixelTypes.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <cstdint>
9
14
20namespace Systemic::Pixels
21{
23 using pixel_id_t = uint32_t;
24
26 enum class PixelDesignAndColor : uint8_t
27 {
28 Unknown,
29 Generic,
30 V3Orange,
31 V4BlackClear,
32 V4WhiteClear,
33 V5Grey,
34 V5White,
35 V5Black,
36 V5Gold,
37 OnyxBlack,
38 HematiteGrey,
39 MidnightGalaxy,
40 AuroraSky,
41 };
42
44 enum class PixelRollState : uint8_t
45 {
47 Unknown,
48
50 OnFace,
51
54
56 Rolling,
57
59 Crooked,
60 };
61
63 enum class PixelBatteryState : uint8_t
64 {
66 Ok,
67
69 Low,
70
73
75 Done,
76
80
82 Error,
83 };
84
86 enum class DieType
87 {
88 D20,
89 D12,
90 D10,
91 D8,
92 D6,
93 D6Pipped,
94 D6Fudge,
95 D4,
96 };
97}
A collection of C++ classes and types to scan for and connect to Pixels dice.
Definition: Helpers.h:13
PixelRollState
Pixel roll states.
Definition: PixelTypes.h:45
@ Handling
The Pixel is being handled.
@ OnFace
The Pixel is resting in a position with a face up.
@ Crooked
The Pixel is resting in a crooked position.
@ Rolling
The Pixel is rolling.
PixelDesignAndColor
Available combinations of Pixel designs and colors.
Definition: PixelTypes.h:27
uint32_t pixel_id_t
Type for a Pixel Id.
Definition: PixelTypes.h:23
PixelBatteryState
The different possible battery charging states.
Definition: PixelTypes.h:64
@ Low
Battery level is low, notify user they should recharge.
@ Error
Charge state doesn't make sense (charging but no coil voltage detected for instance).
@ Ok
Battery looks fine, nothing is happening.
@ Charging
Battery is currently recharging.
@ Done
Battery is full and finished charging.
DieType
The different types of dice.
Definition: PixelTypes.h:87