UNPKG

@robotical/sensors-dashboard

Version:

A dashboard tool for depicting Marty data by Robotical

36 lines (35 loc) 1.05 kB
import Addon from "../models/addons/Addon"; import type MicroBitWebBluetooth from "../microbit/MicroBitWebBluetooth"; import RaftInterface from "./RaftInterface"; export declare const MICROBIT_SIGNALS: { readonly tilt: { readonly group: "Tilt"; readonly x: "X (°)"; readonly y: "Y (°)"; }; readonly buttons: { readonly group: "Buttons"; readonly a: "A"; readonly b: "B"; }; readonly touch: { readonly group: "Touch pins"; readonly p0: "P0"; readonly p1: "P1"; readonly p2: "P2"; }; readonly gestures: { readonly group: "Gestures"; readonly moved: "Moved"; readonly shaken: "Shaken"; }; }; export default class MicroBitInterface extends RaftInterface { readonly microBit: MicroBitWebBluetooth; private unsubscribeSensorListener; constructor(microBit: MicroBitWebBluetooth); getAvailableAddons(): Addon[]; unsubscribeFromPublishedData(): void; private publishSensors; private publish; }