Cubelets API Documentation 2.0
C API
Loading...
Searching...
No Matches
block_types.h
Go to the documentation of this file.
1
6// 0x = Utility blocks
10#define BLOCKER_BLOCK 01 // can't test on pogo. maybe start as passive, and after uptime of x switch to passive
11
12#define POWER_BLOCK 02
13
17#define BATTERY_BLOCK 02
18//#define LIPO_POWER_BLOCK 03 //This is commented out, but dont use type 03. It's used elsewhere
19
23#define BLUETOOTH_BLOCK 04
24#define BLE_HAT 05
25
29#define PASSIVE_BLOCK 06 //Should passive calculate a Block Value and pass it on, currently it does not.
30
31// 2x = Sensor cubelets blocks
36#define BRIGHTNESS_BLOCK 21
37#define BRIGHTNESS_HAT 23
38
42#define KNOB_BLOCK 22
43#define TOUCH_BLOCK 23
44
48#define DISTANCE_BLOCK 24
49
53#define DISTANCE_HAT 29
54
58#define TEMPERATURE_BLOCK 25
59
60// 3x = Sensor hats blocks
61
65#define IMU_HAT 26
66
67
71#define BUTTON_HAT 27
72
73
74
78#define WAVE_HAT_BLOCK 30
79
83#define MICROPHONE_HAT_BLOCK 31
84
85#define MEMORY_HAT_BLOCK 65
86
87
88 // 4x = Action blocks
92#define BAR_GRAPH_BLOCK 43 // Fails for LED bar (IC2 issue) // fixed by timing out the IC2 com functions
93
97#define DRIVE_BLOCK 45
98
102#define ROTATE_BLOCK 46
103
107#define SPEAKER_BLOCK 47
108
112#define FLASHLIGHT_BLOCK 48
113
114#define HINGE_BLOCK 49
115
119#define MOOD_RING_BLOCK 41
120
124#define FLASHLIGHT_HAT 58
125
126
127 // 6x = Think blocks
128#define SUM_BLOCK 60
129
133#define INVERSE_BLOCK 61
134
138#define MAX_BLOCK 62
139
143#define MIN_BLOCK 63
144
148#define THRESHOLD_BLOCK 64
149
150
154#define WIRELESS_HAT 75
155
156
157
158#define DEBUG_BLOCK 99