f3:i2c: use printf and update docs

Preparations for updating the tree was making sure the existing example
worked :)
This commit is contained in:
Karl Palsson
2017-09-01 23:01:56 +00:00
parent 2107faf5ee
commit d6876b1f77
2 changed files with 24 additions and 28 deletions

View File

@@ -1,5 +1,8 @@
# README
I2C example reading from the stm32f3discovery accelerometer.
UART TX on PA2 @ 115200/8n1
This example reads the onboard accelerometer and dumps the raw value
of the ACC_OUT_X_L_A/ACC_OUT_X_H_A registers. (you should see ~0 for flat,
and positive/negative values for tipping the board along it's long axis,
ranging up to plus/minus 16k or so for vertical.