1.8 KiB
title | description | guide_group | menu | permalink | generate_toc | hide_comments |
---|---|---|---|---|---|---|
Events and Services | How to get data from the onboard sensors including the accelerometer, compass, and microphone. | events-and-services | false | /guides/events-and-services/ | false | true |
All Pebble watches contain a collection of sensors than can be used as input
devices for apps. Available sensors include four buttons, an accelerometer, and
a magnetometer (accessible via the CompassService
API). In addition, the
Basalt and Chalk platforms also include a microphone (accessible via the
Dictation
API) and access to Pebble Health data sets. Read
{% guide_link tools-and-resources/hardware-information %} for more information
on sensor availability per platform.
While providing more interactivity, excessive regular use of these sensors will stop the watch's CPU from sleeping and result in faster battery drain, so use them sparingly. An alternative to constantly reading accelerometer data is to obtain data in batches, allowing sleeping periods in between. Read {% guide_link best-practices/conserving-battery-life %} for more information.
Contents
{% include guides/contents-group.md group=page.group_data %}