
5. Peripherals
The starter kit has a set of peripherals that showcase some of the features of the MGM12P.
Be aware that most MGM12P I/O routed to peripherals are also routed to the breakout pads. This must be taken into consideration
when using the breakout pads for your application.
5.1 Push Buttons and LEDs
The kit features two user push buttons, marked
PB0
(BUTTON0) and
PB1
(BUTTON1), and two yellow LEDs, marked
LED0
and
LED1
.
BUTTON0 and LED0 shares the connection to GPIO pin PF6, and BUTTON1 and LED1 are both connected to PF7.
To use the push buttons as inputs to the MGM12P, each button's GPIO pin must be configured as an input. Configure the pins as out-
puts to control the LEDs. Note that LEDs are connected to GPIO pins in an active-low configuration.
The push buttons are debounced by RC filters with a time constant of 1 ms.
User Buttons
& LEDs
UIF_BUTTON0_LED0
UIF_BUTTON1_LED1
PF6 (GPIO)
PF7 (GPIO)
MGM12P
Figure 5.1. Buttons/LEDs
UG290: MGM12P Mighty Gecko Module Wireless Starter Kit User's Guide
Peripherals
silabs.com
| Building a more connected world.
Rev. 1.00 | 15