Eduingo EDU12 Buttons

Buttons

EDU12

Four big coloured buttons A, B, C and D. Great as a game controller or as keys.

Specifications

  • 4 buttons A–D
  • Pressed = LOW (use the internal pull-up)
  • The module goes on top of the tower
  • Needs no power, the buttons switch to ground and the pull-up is inside the ESP32
  • Practically no current
  • Does not use the I2C bus
  • Uses: game controller, keys, emergency button

Pins

Pin Function
IO1 Button A
IO2 Button B
IO4 Button C
IO3 Button D

Wiring diagram

Buttons wiring diagram

Example code

Try the example Colour switch right in your browser in Eduingo AI Lab. Each button lights the RGB LED in a different colour: BTN1 red, BTN2 green, BTN3 blue, and BTN4 turns the light off. The RGB LED has three tiny lights inside and mixes all colours from them. Try adding yellow: it is made from red and green (#ffff00).