Skip to main content

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
Filter by
Sorted by
Tagged with
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 ...
Mars's user avatar
  • 39
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,...
John C.'s user avatar
  • 21
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 ...
brad's user avatar
  • 201
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 ...
Pnzy's user avatar
  • 11
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 ...
user66825's user avatar
-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.
Lu ck's user avatar
  • 1