I have spent countless hours trying to solve this error myself.
I am a new user though, so there is probably a very easy way to fix this issue.
I have tried to add the libraries for this code;
#include <avr/io.h>
#include <avr/sleep.h>
#include <avr/wdt.h>
#include <stdlib.h>
#include <util/atomic.h>
#include <util/delay.h>
I am not sure if I added these libraries correctly or not after downloading them.
Here is the website that I copied the code from on GitHub;
I think the problem is that he is not compiling the code on an Arduino IDE.
I`m not sure though.
The code is for a timed beeper.
I keep getting the error message;
'PWM1B' was not declared in this scope
I have already downloaded and added a library called 'SoftPWM.h' although im not sure if that is diffrent from 'PWM.h' or not.
Could someone please help me with this issue?
I`m sorry if I have not added enough information or posted this incorrectly.
This is actually my first post. If I am not using this forum correctly, please let me know.
Thank you
Error Message.doc (28 KB)
main.c (7.81 KB)