Skip to content

Instantly share code, notes, and snippets.

@jacksonkeating
Last active July 31, 2024 05:32
Show Gist options
  • Save jacksonkeating/cd6632d177e6c188e1ca9f914ce20e87 to your computer and use it in GitHub Desktop.
Save jacksonkeating/cd6632d177e6c188e1ca9f914ce20e87 to your computer and use it in GitHub Desktop.
//prototypes
function wavecake.ui.data(data); // adds data to the widget line chart
function wavecake.ui.message(message); // displays or updates message
function wavecake.ui.result(status); // turns widget green ("PASS"), red ("FAIL"), or white ("PENDING")
//examples
wavecake.ui.message("Battery Level: " + result.data[0] + "%")
wavecake.ui.data(result.data[0])
wavecake.ui.result("PASS")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment