O. OSC Client‎ > ‎

Buttons and led's

4 Buttons / 4 Led's

The 4 buttons / 4 led's are supported on the GPIO pins. The mapping is as following:
  • GPIO0 -> cmd0
  • GPIO1 -> cmd1
  • GPIO2 -> cmd2
  • GPIO3 -> cmd3
The GPIO pins are active low (connecting the other side of the button to ground).

The status led's are mapped as following:
  • GPIO 6 -> led0
  • GPIO 7 -> led1
  • GPIO10 -> led2
  • GPIO18 -> led3
For the function of the other pins, see here.

8 Buttons / 8 Led's

This is implemented using a MCP23017. INTA must be connected to GPIO7, pin 12. See also here.

The mapping is as following:
  • GPA0 -> cmd0
  • GPA1 -> cmd1
  • GPA2 -> cmd2
  • GPA3 -> cmd3
  • GPA4 -> cmd4
  • GPA5 -> cmd5
  • GPA6 -> cmd6
  • GPA7 -> cmd7
The GPIO pins are active low (connecting the other side of the button to ground).

The status led's are mapped as following:
  • GPB0 -> led0
  • GPB1 -> led1
  • GPB2 -> led2
  • GPB3 -> led3
  • GPB4 -> led4
  • GPB5 -> led5
  • GPB6 -> led6
  • GPB7 -> led7
Comments