Questions tagged [header]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
64 views

Odd behavior of defines - is this Arduino specific and how does it work?

A question I have long had regards an interaction between #define statements and a library header include. I've seen several Arduino libraries use this rather convenient configuration system where you ...
user avatar
0 votes
1 answer
62 views

variable or field declared void Error

For a larger sketch, I have separated a chunk of code in a separate .cpp file #include "msg.h" #include <Arduino.h> #include <HTTPClient.h> #include <ArduinoJson.h> void ...
user avatar
  • 183
1 vote
1 answer
361 views

Using functions in header files [closed]

I want to include a function in my sketch I moved to a .h file. I did it as follows: My code: #include "header.h" void setup() { fct(); } void loop() { } My header: #include "...
user avatar
0 votes
3 answers
3k views

cannot open source file "WProgram.h" in VSCode

So I started typing out this question, but in the process of taking screenshots and looking up sources for the question I figured out the answer :P That said, this problem has been a snag for me for a ...
user avatar
1 vote
2 answers
190 views

What are patterns of bits sent to or read from GPIO pins called?

I want to call them “words”, but I’m uncertain if this is how they are referred to in documentation for the use of a header board that might plug into an ardino board. So if you have a sequence of ONs ...
user avatar
  • 113
3 votes
1 answer
413 views

What is the logic behind Arduino inlining `HardwareSerial::_rx_complete_irq()` for receiving serial data (but NOT `_tx_udr_empty_irq()`)?

Q: What is the logic behind Arduino inlining HardwareSerial::_rx_complete_irq() for receiving serial data (but NOT _tx_udr_empty_irq()), and when is it advisable? From the bottom of the HardwareSerial ...
user avatar