Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example does not compile #17

Open
01binary opened this issue Mar 16, 2023 · 1 comment
Open

Example does not compile #17

01binary opened this issue Mar 16, 2023 · 1 comment

Comments

@01binary
Copy link

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
Copy link
Owner

Palatis commented Apr 22, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants