Customizing the Hardware — image 1 of 1

raspberry_pi_blink-gpio.png
details

For all buttons, connect one leg of each to GND, and the opposite leg to a digital pin:

  • GPIO Pin 22 is the left eye wink.
  • GPIO Pin 23 blinks both eyes.
  • GPIO Pin 24 winks the right eye.

If using our analog joystick breakout board, that stick includes a clicky button when you press down on it (on the SEL pin). This can optionally be used for manual blink control, or you can use a separate button for this (I find the joystick button a bit hamfisted).

Back

Search