support
support copied to clipboard
[Feature] Build HAT IMU support
It appears that the Raspberry Pi Build HAT has an IMU (accelerometer and gyro) that is initialized but isn't otherwise used.
https://github.com/raspberrypi/buildhat/blob/19027849264d8839f7548713219a5982925dd885/firmware-pico/ports.c#L131-L135
If it is actually there on the board, we could use it in Pybricks. There is one caveat that it uses the same I2C bus as two of the four motor controllers. So reading data from the IMU will potentially add delay to updating motor outputs.