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

PWM library not working #24

Open
vkvark opened this issue Sep 15, 2023 · 0 comments
Open

PWM library not working #24

vkvark opened this issue Sep 15, 2023 · 0 comments

Comments

@vkvark
Copy link

vkvark commented Sep 15, 2023

Describe the bug
Hi there. I've tried to compile some examples from the 'pwm' library and failed.

To Reproduce
Just open the 'pwm_d5d6_duo0.ino' or 'pwm_d5d6_solo.ino' or 'pwm_d9d10_duo1.ino' example and try to compile it.

IDE output:

In file included from C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.cpp:1:0:
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:8:1: error: 'uint16_t' does not name a type; did you mean 'char16_t'?
 uint16_t pwmFrequency(uint8_t, uint32_t);
 ^~~~~~~~
 char16_t
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:9:1: error: 'uint32_t' does not name a type; did you mean 'char32_t'?
 uint32_t pwmResolution(uint8_t, uint8_t);
 ^~~~~~~~
 char32_t
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:27:14: error: variable or field 'pwmMode' declared void
 void pwmMode(uint8_t pin, uint8_t wmode, uint8_t fmode = PWM_FREQ_FAST, uint8_t dband = 0);
              ^~~~~~~
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:27:14: error: 'uint8_t' was not declared in this scope
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:27:27: error: 'uint8_t' was not declared in this scope
 void pwmMode(uint8_t pin, uint8_t wmode, uint8_t fmode = PWM_FREQ_FAST, uint8_t dband = 0);
                           ^~~~~~~
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:27:42: error: 'uint8_t' was not declared in this scope
 void pwmMode(uint8_t pin, uint8_t wmode, uint8_t fmode = PWM_FREQ_FAST, uint8_t dband = 0);
                                          ^~~~~~~
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:27:73: error: 'uint8_t' was not declared in this scope
 void pwmMode(uint8_t pin, uint8_t wmode, uint8_t fmode = PWM_FREQ_FAST, uint8_t dband = 0);
                                                                         ^~~~~~~
exit status 1

Compilation error: exit status 1
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

1 participant