wpi-32u4-library
Functions
pcint.h File Reference
#include <Arduino.h>

Go to the source code of this file.

Functions

void attachPCInt (uint8_t pcInt, void(*pcisr)(void))
 Attaches a function to a pin change interrupt. More...
 
uint8_t digitalPinToPCInterrupt (uint8_t pin)
 

Function Documentation

◆ attachPCInt()

void attachPCInt ( uint8_t  pcInt,
void(*)(void)  pcisr 
)

Attaches a function to a pin change interrupt.

Parameters
pcIntThe specific pin change interrupt, e.g., "PCINT3"
pcisrA pointer to the ISR function, of type void fxn(void).

Definition at line 12 of file pcint.cpp.

References lastB, and pcISR.

Referenced by IRDecoder::init(), Rangefinder::init(), and Romi32U4Motor::initEncoders().

◆ digitalPinToPCInterrupt()

uint8_t digitalPinToPCInterrupt ( uint8_t  pin)

Definition at line 53 of file pcint.cpp.

Referenced by IRDecoder::init(), and Rangefinder::init().