-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathshims.d.ts
47 lines (39 loc) · 1.44 KB
/
shims.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Auto-generated. Do not edit.
declare namespace bluedot {
/**
* Starts the BlueDot BLE service
**/
//% blockId=bluedot_start block="blue dot start" shim=bluedot::startService
function startService(): void;
/**
* Registers code to run when the button is in a particular state
*/
//% blockId=bluedot_on_button_changed block="on blue dot %state" shim=bluedot::onButton
function onButton(state: BlueDotButtonState, handler: () => void): void;
/**
* Register code to run when the position has changed
*/
//% blockId=bluedot_on_position_chaged block="on blue dot moved" shim=bluedot::onMoved
function onMoved(handler: () => void): void;
/**
* Gets a value indicating if the button is pressed
*/
//% blockId=bluedot_buttonpressed block="blue dot is pressed" shim=bluedot::isPressed
function isPressed(): boolean;
/**
* Gets the position of the cursor on the bluedot, between -1023 (left) and 1023 (right)
*/
//% shim=bluedot::x
function x(): number;
/**
* Gets the position of the cursor on the bluedot, between -1023 (left) and 1023 (right)
*/
//% shim=bluedot::y
function y(): number;
/**
* Gets the position of the touch point on the blue dot
*/
//% blockId=bluedot_position block="blue dot %name" shim=bluedot::position
function position(dimension: BlueDotDimension): number;
}
// Auto-generated. Do not edit. Really.