pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • PebbleOS
  • Mobile App
  • Examples
  • Index 01
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

PebbleOS

  • Overview
  • Start here
    • Getting started guide
  • Pebble Firmware
    • Overview
    • Playground
    • Application SDK
  • Development
    • The pbl CLI
    • Build system
    • Samples
    • Emulator and simulator
    • Testing
    • Debugging
    • Conventions
  • System
    • Architecture overview
    • Kernel
    • Drivers
      • Device model
      • Simulators
      • Buses and I/O
      • Clocks, power and timing
      • Memory and storage
      • Display and graphics
      • Sensors and input
      • Audio and haptics
      • Power supply
      • System
    • Subsystems
    • Libraries
    • Third-party
  • Hardware
    • Boards
    • Board Add-ons
    • Programmers
  • Community
    • Contribution Guidelines
  • Reference
    • Reference
    • Kconfig options

Accelerometer

An accelerometer reports batches of samples, shakes and double taps to the listener a consumer registers, the accelerometer service in the Pebble firmware. Drivers keep no buffers and hide the hardware state, such as FIFO modes: the consumer asks for a sampling interval and a batch size, and the driver picks the configuration.

Directory

drivers/imu

Header

pbl/drivers/accel.h

Kconfig

CONFIG_ACCEL, enabled by the application

Role

ACCEL

Sample

Accelerometer: Samples and gestures

API

API reference

Drivers

Driver

Compatible

Kconfig

ST LIS2DW12

st,lis2dw12

CONFIG_ACCEL_LIS2DW12

ST LSM6DSO

st,lsm6dso

CONFIG_ACCEL_LSM6DSO

Simulator

—

CONFIG_ACCEL_SIM

Generated from PebbleOS 12b6c531f. This page is maintained in the pebbleos repository: docs/drivers/accel.md.