PyRasp
Try itPracticeDocsBlogYour first circuit
Sign in

← All practice problems

Raspberry Pi Pico practice problem · Raspberry Pi Pico

Sensor on screen

HardBudget $28MicroPython

The MPU-6050 and the OLED share the I²C bus on GP4/GP5 (addresses 0x68 and 0x3C). Read the sensor's WHO_AM_I register (0x75), show it on the screen and print it. It is 104.

Solve it free

More in Raspberry Pi Pico

  • Easy The Pico’s own LED Blink the LED built into the board, on GP25.
  • Easy First blink Blink an LED once a second, forever.
  • Easy Traffic light Red, green, amber — a traffic light on three LEDs.
  • Easy Button mirror The LED follows the button: on while it is held, off while it is not.
  • Medium Press to toggle Each press flips the LED — and the contacts bounce, so debounce it.
  • Medium PWM fade Fade an LED up with PWM, one step every 0.2 s.