Skip to content

Programming interface overview

App class

For a detailed overview of the App class, see The App class.

Premade UI elements

You can use the following premade app_components to create user interfaces:

  • Menu: scroll up/down and select
  • Notification: pop up notifications
  • YesNoDialog: create yes or no dialogues
  • TextDialog: create text dialogues
  • Layout: create menu layouts like the settings app
  • Tokens:
  • constants for the display properties and colors
  • functions for clearing the background and setting a color

Drawing on the canvas with ctx

You can use the ctx package to draw lines, shapes, text, and images on a canvas.

Badge hardware

You can use the following hardware with the inbuilt interfaces:

Using APIs

To learn how to use APIs in your APPs, see Use an API in an app.