arduino-softpwm
arduino-softpwm copied to clipboard
Example does not compile
Getting this error compiling sample code:
SoftPWM_example:65:41: error: 'PORTC0' was not declared in this scope
SOFTPWM_DEFINE_CHANNEL(14, DDRC, PORTC, PORTC0); //Arduino pin A0
I used parts of examples to test this in my own code and got the same error.
Thanks for the library, sorry you ran out of time on maintaining it!
DDRx
, PORTx
, PORTxy
defines depends largely on MCU.
- you must be on an AVR, doesn't work with other arch.
- make sure your MCU has
Port C
by checking microchip documentation.