LandonW:
so I need something likevoid dimmerSwitch(){
dimmerCount++; }
Nearly, but not quite
Your attachInterrupt() line is
attachInterrupt(digitalPinToInterrupt(dimmerSwitch), Dim, FALLING);
which means that it is looking for an Interrupt Service Routine called Dim and your code should be
void Dim(){
dimmerCount++;
}
However IMHO dimmerSwitchISR() would be a more meaningful name
...R