Datasheet
When working with multi media
applications it is far more intuitive
to use a single joystick than several
dierent push buttons that are more
far apart. This is more natural for
users and they can browse through
on-screen menus, or even play games
much easier. EasyMx PRO
™
v7 for STM32
features navigation switch with ve dierent
positions: Up, Down, Left, Right and Center.
Each of those acts as a button, and is connected
to one of the following microcontroller pins: PD4,
PB5, PD2, PA6, PC13 (respectively). Before using the
navigation switch, it is necessary to pull-up mentioned
microcontroller pins using tri-state DIP switches located in I/O
groups. After pressing the navigation switch in desired direction,
associated microcontroller pins are connected to GND, which can be
detected in user software.
Navigation switch
Figure 19-2: Navigation switch is an intuitive solution for browsing
through on-screen menus.
4
5
6
1
2
3
KEY1
UP
LEFT
CENTER
RIGHT
DOWN
PD2
PD4
PC13
PA6
PB5
SW8
SW5
SW4
SW2
VCC-3.3V
VCC-3.3V
VCC-3.3V
VCC-3.3V
UP
DOWN
PULL
UP
DOWN
PULL
UP
DOWN
PULL
UP
DOWN
PULL
1 2 3 4 5 6 7 8
+
_
1 2 3 4 5 6 7 8
+
_
1 2 3 4 5 6 7 8
+
_
1 2 3 4 5 6 7 8
+
_
PA6
PB5
PC13
PD2
PD4
DATA BUS
R81 220
Figure 19-1: Navigation switch connection schematic. Pull-up resistors should be enabled during operation
multimedia
page 33
EasyMx PRO
v7