The goal here is to make a program that prints the accelerometer value on a fixed interval, using the two pieces above. So first of all make sure you have a
while True loop that simply does a sleep. This will make sure your bot is actively working by itself.
Then write a separate function decorated by
run_every as in the examples you found above, to execute every 10 milliseconds. Then in that function use print to print the accelerometer value in the direction of movement. The value should be small negative numbers normally, but it can jump to the 400 range if you move the bot forward quickly. Use the abs value to always look at the absolute value.
