---
title: "Accelerometer"
canonical_url: https://developer.repebble.com/pebbleos/docs/drivers/accel/
last_updated: 2026-11-24
sdk_version: 4.44
---
# Accelerometer

Source: https://developer.repebble.com/pebbleos/docs/drivers/accel/

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](https://developer.repebble.com/pebbleos/docs/samples/drivers/accel.md)

 |
| 

API

 | 

[API reference](https://developer.repebble.com/pebbleos/apidoc/d9/d01/group __drivers__ accel.html)

 |

## 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](https://github.com/coredevices/pebbleos/commit/12b6c531f9e0c2f39fe4e9bb2886314697128f08). This page is maintained in the pebbleos repository: [docs/drivers/accel.md](https://github.com/coredevices/pebbleos/blob/12b6c531f9e0c2f39fe4e9bb2886314697128f08/docs/drivers/accel.md).
