alarm.touch – Trigger an alarm when touch is detected.¶
Create an alarm that will be triggered when the given pin is touched. The alarm is not active until it is passed to an
alarm-enabling function, such as
pin (microcontroller.Pin) – The pin to monitor. On some ports, the choice of pin may be limited due to hardware restrictions, particularly for deep-sleep alarms.
The trigger pin.