arduino-softpwm icon indicating copy to clipboard operation
arduino-softpwm copied to clipboard

Example does not compile

Open 01binary opened this issue 1 year ago • 1 comments

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!

01binary avatar Mar 16 '23 06:03 01binary

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.

Palatis avatar Apr 22 '23 19:04 Palatis