5.2.2 Mechanical Switch

The PIC18F16Q40 Curiosity Nano board has one mechanical switch. This is a generic user-configurable switch. When the switch is pressed, it will drive the I/O line to ground (GND).

Tip: There is no externally connected pull-up resistor on the switch. To use the switch, make sure that an internal pull-up resistor is enabled on pin RC0.
Table 5-2. Mechanical Switch
PIC18F16Q40 PinDescriptionShared Functionality
RC0User switch (SW0)Edge connector, On-board debugger