-
Notifications
You must be signed in to change notification settings - Fork 18
Sensor: ANALOG JOYSTICK SENSOR
Jaume Olivé Petrus edited this page Oct 30, 2017
·
3 revisions
What | Comments | |
---|---|---|
Interface | 2 ADC 1 GPIO |
ADC 1: X attached at ADC 2: Y attached at GPIO : SW attached at |
Read () from sensor When () changes from sensor |
x | -1: left movement 0: no movement 1: right movement |
y | -1: up movement 0: no movement 1: down movement |
|
sw | 0: switch released 1: switch pressed |
Hardware pull-ups are not required for switch.