zephyr hardware support module for coquette including board definitions
  • C 98.7%
  • CMake 1.3%
Find a file
2025-10-25 00:45:10 +01:00
.vscode meow 2025-08-11 09:41:47 +01:00
boards/skji/coquette updated display props 2025-10-25 00:45:10 +01:00
drivers custom bas service 2025-10-11 02:26:55 +01:00
dts/bindings power button sends SLEEP on short push and COFFEE on long push 2025-10-08 22:17:18 +01:00
include updated display props 2025-10-25 00:45:10 +01:00
snippets work towards release 2025-10-05 20:17:04 +01:00
src updated display props 2025-10-25 00:45:10 +01:00
zephyr mcuboot 2025-08-28 23:05:25 +01:00
.clang-format formatting 2025-09-13 14:26:19 +01:00
.gitignore meow 2025-08-11 09:41:47 +01:00
CMakeLists.txt move driver headers to include dir 2025-09-22 17:00:16 +01:00
Kconfig updated display props 2025-10-25 00:45:10 +01:00
LICENSE Initial commit 2025-07-18 20:57:53 +02:00
README.md added some i2c debug commands for the lp5814 while we work on the driver for this 2025-07-26 17:01:00 +01:00

z-boards

zephyr board definitions, drivers, and shell for coquette

revisions

  • coquette@mariposa is the final butterfly body board design - this doesn't cover the two prototypes, those may be added later to support our prototype versions
  • coquette@nightingale is the rounded bird-body board design that replaces mariposa

shell

yes there's a shell

ti lp5814

i'm just starting work on this, the readme is also my notes

shell commands to test

enable device:

i2c write_byte i2c1 0x2c 0x0 0x1

disable device:

i2c write_byte i2c1 0x2c 0x0 0x0

check engine status:

i2c read_byte i2c1 0x2c 0x40

reset undervoltage lockout/por:

i2c write_byte i2c1 0x2c 0x13 0x1

reset thermal shutdown:

i2c write_byte i2c1 0x2c 0x13 0x2

max current 25.5mA (should be default, do not set 51mA!):

i2c write_byte i2c1 0x2c 0x1 0x0

set dot current for all four channels to 18mA:

i2c write_byte i2c1 0x2c 0x14 0xb5
i2c write_byte i2c1 0x2c 0x15 0xb5
i2c write_byte i2c1 0x2c 0x16 0xb5
i2c write_byte i2c1 0x2c 0x17 0xb5

enable all four leds:

i2c write_byte i2c1 0x2c 0x02 0x0f

set all four channels to exponential pwm with animation disabled:

i2c write_byte i2c1 0x2c 0x04 0xf0

save config:

i2c write_byte i2c1 0x2c 0x0f 0x55

set LEDs to 100% of configured current (18mA with settings above):

i2c write_byte i2c1 0x2c 0x18 0xff
i2c write_byte i2c1 0x2c 0x19 0xff
i2c write_byte i2c1 0x2c 0x1a 0xff
i2c write_byte i2c1 0x2c 0x1b 0xff