Questions tagged [functions]
Segmenting code into functions allows a programmer to create modular pieces of code that perform a defined task and then return to the area of code from which the function was "called". The typical case for creating a function is when one needs to perform the same action multiple times in a program.
6 questions with no upvoted or accepted answers
1
vote
0
answers
787
views
Keyestudio KS5009 ESP32WROOM32 Smart Home
I'm encountering persistent errors with the sample code provided for my smart home kit project. Despite conducting extensive research and troubleshooting efforts, I haven't been able to find a ...
1
vote
0
answers
368
views
Arduino PID Library
I hope you're doing well. I have some questions regarding the PID functions.
Can you please explain to me the following commands? I shall be very thankful to you.
PID myPIDX(&InputX, &OutputX,...
1
vote
0
answers
50
views
Peculiar relay behavior from POST
I am trying to toggle on/off between two separate HTTP request.
One submit button to turn it on, and another separate submit button to turn it off.
I expect the device to launch in the off/low 0V ...
1
vote
0
answers
126
views
Get value from protected member of class
i'm really new to Arduino.
I have Arduino Mega, a USB host shield and a barcode scanner. I'm using this library >> link and modified it example so barcode scanner worked (Got it from here) to read ...
0
votes
0
answers
463
views
Tapered log potentiometer to linear formula
I have a tapered log 10K potentiometer. I would like some function which returns tapered log value to linear values.
The potentiometer is a slider. When connected to the Arduino the wiper displays the ...
-1
votes
1
answer
251
views
Trying to create a delay function whilst performing other functions, using Timer.h libraries. Arduino uno
I am having a compilation error saying invalid useof template-name 'Timer without an argument list.