mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add a first whack at an lis2dh12 accelerometer driver
This is a ball of Claude-generated code which was guided by the datasheets, some trait APIs and other prompt info. The prompt used to generate the code is appended to this file. The result is structurally pretty similar to the accelerometer driver templates I've seen provided by the vendor, except in Rust and with Xous idioms, so I think this is a pretty reasonable whack at reducing boilerplate. There's way more features in these accelerometers than I have time to write getters/setters for. The few functions I have used look good insofar as getter/setters, but there are some oddly specific defaults in the file that should probably be corrected, probably due to over-prompting of the code generator. I'll work through these over time.
This commit is contained in:
parent
1db717a63f
commit
f288a18040
1 changed files with 1781 additions and 0 deletions
1781
libs/bao1x-hal/src/lis2dh12.rs
Normal file
1781
libs/bao1x-hal/src/lis2dh12.rs
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue