KIR Interrupts.ino

From AnalysIR WiKi
Revision as of 08:11, 9 October 2019 by AnalysIR (talk | contribs) (Created page with "'''''> KontroLIR Home > back''''' This file contains a number of functions for han...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

> KontroLIR Home > back

This file contains a number of functions for handling interrupts and related items.

  • KIR_initPCINT - this function initialises the MCU to handle the required PIINTs on the COL pins only. Col pins are set to INPUT_PULLUP and when a button is pressed the COL pin is pulled low, by the respective ROW pin. The resulting interrupt wakes the MCU up from sleep.
  • KIR_enablePCint - this function clears any PCINT flags and enables interrupts for the COL pins.
  • KIR_disablePCint - this function clears any PCINT flags and disables interrupts for the COL pins. However, we do not use/call this function and simply disable PCINT every time withing the PCINT ISRs.



> KontroLIR Home > back