using Toybox.Application; using Toybox.WatchUi; using Toybox.System; class DepthAlertsApp extends Application.AppBase
class DepthAlertView extends WatchUi.View function onUpdate(dc) var depth = Sensor.getDepth(); if (depth != null && depth < 5) System.println("Shallow water!"); WatchUi.requestUpdate(); garmin 10r-04 6953 update
function getInitialView() return [ new DepthAlertView() ]; using Toybox
function onStart(state) System.println("Depth Alert Feature Started"); 5) System.println("Shallow water!")
function initialize() AppBase.initialize();