native builds PebbleOS as a program for the host, Linux or macOS, with a
window standing in for the device. The wasm variant builds it as
WebAssembly, to run in a browser. The firmware is compiled for the host
CPU, and every device has a host implementation. The
Native simulator page describes how to
run and interact with it.
Display: an SDL window, or a canvas in the browser
Buttons: the host keyboard
Touch: the mouse
Flash: external flash backed by a file, kept across runs; in memory in a browser
Serial: the console on the terminal or a TCP port, a port for the QEMU serial protocol, and a Bluetooth HCI UART on a TCP port or serial device
Clocks: RTC, clock source and tick from the host clock
Random numbers: the host’s random number generator
Ethernet: a controller on a Linux TAP interface
Simulated: backlight, accelerometer, ambient light sensor, vibration motor, microphone, die temperature and charger
There is no speaker, heart rate sensor or Bluetooth radio: Bluetooth needs an external HCI controller.
Generated from PebbleOS 7416f78a1. This page is maintained in the pebbleos repository: docs/boards/native/index.md.