|
1 |
| -import { MicrobitWebUSBConnection } from "./usb.js"; |
| 1 | +import { AccelerometerData, AccelerometerDataEvent } from "./accelerometer.js"; |
2 | 2 | import { MicrobitWebBluetoothConnection } from "./bluetooth.js";
|
3 |
| -import { MicrobitRadioBridgeConnection } from "./usb-radio-bridge.js"; |
4 | 3 | import { BoardId } from "./board-id.js";
|
| 4 | +import { ButtonEvent, ButtonEventType, ButtonState } from "./buttons.js"; |
5 | 5 | import {
|
6 |
| - DeviceConnection, |
7 | 6 | AfterRequestDevice,
|
8 | 7 | BeforeRequestDevice,
|
9 | 8 | BoardVersion,
|
10 | 9 | ConnectionStatus,
|
11 | 10 | ConnectionStatusEvent,
|
| 11 | + DeviceConnection, |
| 12 | + DeviceConnectionEventMap, |
12 | 13 | DeviceError,
|
13 | 14 | DeviceErrorCode,
|
14 |
| - DeviceConnectionEventMap, |
15 | 15 | FlashDataError,
|
16 | 16 | FlashDataSource,
|
17 | 17 | FlashEvent,
|
18 | 18 | SerialDataEvent,
|
19 | 19 | SerialErrorEvent,
|
20 | 20 | SerialResetEvent,
|
21 | 21 | } from "./device.js";
|
| 22 | +import { TrackingEventTarget } from "./events.js"; |
22 | 23 | import { createUniversalHexFlashDataSource } from "./hex-flash-data-source.js";
|
23 |
| -import { AccelerometerDataEvent } from "./accelerometer.js"; |
24 |
| -import { ButtonEvent } from "./buttons.js"; |
| 24 | +import { ServiceConnectionEventMap } from "./service-events.js"; |
| 25 | +import { MicrobitRadioBridgeConnection } from "./usb-radio-bridge.js"; |
| 26 | +import { MicrobitWebUSBConnection } from "./usb.js"; |
25 | 27 |
|
26 | 28 | export {
|
27 |
| - MicrobitWebUSBConnection, |
28 |
| - MicrobitWebBluetoothConnection, |
29 |
| - MicrobitRadioBridgeConnection, |
30 |
| - BoardId, |
31 |
| - createUniversalHexFlashDataSource, |
32 | 29 | AfterRequestDevice,
|
33 | 30 | BeforeRequestDevice,
|
| 31 | + BoardId, |
34 | 32 | ConnectionStatus,
|
35 | 33 | ConnectionStatusEvent,
|
| 34 | + createUniversalHexFlashDataSource, |
36 | 35 | DeviceConnectionEventMap,
|
37 | 36 | DeviceError,
|
38 | 37 | FlashDataError,
|
39 | 38 | FlashEvent,
|
| 39 | + MicrobitRadioBridgeConnection, |
| 40 | + MicrobitWebBluetoothConnection, |
| 41 | + MicrobitWebUSBConnection, |
40 | 42 | SerialDataEvent,
|
41 | 43 | SerialErrorEvent,
|
42 | 44 | SerialResetEvent,
|
| 45 | + ServiceConnectionEventMap, |
| 46 | + TrackingEventTarget, |
43 | 47 | };
|
44 | 48 |
|
45 | 49 | export type {
|
| 50 | + AccelerometerData, |
46 | 51 | AccelerometerDataEvent,
|
47 | 52 | BoardVersion,
|
48 | 53 | ButtonEvent,
|
| 54 | + ButtonEventType, |
| 55 | + ButtonState, |
49 | 56 | DeviceConnection,
|
50 | 57 | DeviceErrorCode,
|
51 | 58 | FlashDataSource,
|
|
0 commit comments