Raspberry Pi Pico practice problem · Raspberry Pi Pico
Wake the sensor
MediumBudget $12MicroPython
The MPU-6050 on GP4 (SDA) and GP5 (SCL) starts asleep: bit 6 of its power register (0x6B) is set. Wake it by writing 0 to register 0x6B, then read the register back and print it. The console should show a single 0.
bus.writeto_mem(0x68, 0x6B, bytes([0]))