Garmin 10r-04 6953 Update ⇒ < Instant >

function getInitialView() return [ new DepthAlertView() ];

function initialize() AppBase.initialize(); garmin 10r-04 6953 update

using Toybox.Application; using Toybox.WatchUi; using Toybox.System; class DepthAlertsApp extends Application.AppBase function initialize() AppBase.initialize()

function onStart(state) System.println("Depth Alert Feature Started"); 5) System.println("Shallow water!")

class DepthAlertView extends WatchUi.View function onUpdate(dc) var depth = Sensor.getDepth(); if (depth != null && depth < 5) System.println("Shallow water!"); WatchUi.requestUpdate();

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments