CodeBot:
CodeX:
codex
lis2dh
infrared
radio
ascii_art
bitmap
canvas
colors
gallery
tft
tile_grid
sprite
codec
funcgen
songplayer
soundlib
trackplayer
waveforms
CodeAIR:
General:
LIS2HH Driver - i2c Accelerometer
codex.lis2dh.
LIS2DH
Device driver for LIS2DH accelerometer, controlled via i2c bus.
dump_axes
Debug - send axis values to stdout
read
Read current XYZ axis values and update orientation
reset
Init registers to default config
self_test
Run self-test and return device to default state. Return True if passed
set_byte
Set byte register
test_exceeds
Test each iterable value: a[0..n] - b[0..n] > delta
verify_id
Verify device ID - return True if correct
wait_xyz_ready
Poll status register and return True when READY, False if timeout
Download Source