Hey Guys
i'm currently working on a project where i have modeltrain signals. I sumbled upon the function signal()
- what does it do
- how can i define it in an enum without me getting the error of primary expression
if it's a bit xy sry
Thanks
Hey Guys
i'm currently working on a project where i have modeltrain signals. I sumbled upon the function signal()
if it's a bit xy sry
Thanks
I sumbled upon the function signal()
You have the code. We don't
Please post a full sketch and/or details of where you found the function
Sorry, ive got the problem solved with the error an declaration
EDIT: just the normal function signal() i think its native since i dont have any libarys installed
signal()
That cannot be the solution as that line of code will not compile
i think its native since i dont have any libarys installed
Please post the sketch where the function is used as it is not a "native" function
Btw it is native function of cpp
https://en.cppreference.com/w/cpp/utility/program/signal
Regards
To quote from C++ Signal Handling
Signals are the interrupts delivered to a process by the operating system which can terminate a program prematurely. You can generate interrupts by pressing Ctrl+C on a UNIX, LINUX, Mac OS X or Windows system.
The Arduino does not have an Operating System. Can you see a problem ?
In view of what you said
i'm currently working on a project where i have modeltrain signals.
were you hoping that the signal() function would provide functionality to your program ?
I note that you have still not posted a sketch that uses the function, but I am not surprised bearing in mind what the function does
From the AVRGCC library manual:
#define SIGNAL ( vector )
Introduces an interrupt handler function that runs with global interrupts initially disabled.
This is the same as the ISR macro without optional attributes.
Deprecated:
Do not use SIGNAL() in new code. Use ISR() instead.
Sorry if it was unclear it was a general question this was not associated no my code that im currently on