Palatis / arduino-softpwm

Software PWM library for Arduino
78 stars 27 forks source link

Example does not compile #17

Open 01binary opened 1 year ago

01binary commented 1 year ago

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!

Palatis commented 1 year ago

DDRx, PORTx, PORTxy defines depends largely on MCU.

  1. you must be on an AVR, doesn't work with other arch.
  2. make sure your MCU has Port C by checking microchip documentation.