nulllaborg/arduino_nulllab

PWM library not working

vkvark opened this issue · 0 comments

vkvark commented

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