UNPKG

j5e

Version:

j5e is a device first robotics an IoT framework built to levarage the ECMA-419 specification

12 lines (9 loc) 225 B
import GPS from "j5e/gps"; import { timer } from "j5e/fn"; const gps = await new GPS([17, 16]); gps.on("change", data => { trace(` Latitude: ${data.latitude} Longitude: ${data.longitude} Altitude: ${data.altitude}`); });