Skip to main content

Questions tagged [c++]

C++ is the standard language used to program the Arduino IDE. However, the Arduino IDE does have lots of libraries built in, so functions such as "main" are not called directly in the sketch code. Most Arduino code online is written in this language.

4 votes
1 answer
316 views

For an Arduino LED animation project I have been working on an editor tool using HTML and javascript. After setting up various things, the tool enables generating C++ code to paste into an Arduino ...
spring's user avatar
  • 141
-2 votes
1 answer
103 views

I am trying to change thing2 if I input 0, and thing3 if I input 1. I don't want to just have if/else to determine if I should be changing thing2 or thing3 because I want this to be more dynamic than ...
Warby's user avatar
  • 1
0 votes
1 answer
106 views

I have this code, work fine! uint32_t id , id2; char s[64]; // Should be enough ... id2 = id = CAN.getCanId(); sprintf (s, "%04d : ", id ); // !!! HERE !!! Serial.print(s); the ...
James's user avatar
  • 11
0 votes
1 answer
101 views

I have this Arduino code that will print 1 in the serial monitor and even prints two 1's. I haven't even pushed or clicked the push button, yet it already is already set to HIGH and even activates to ...
Noli Fin's user avatar
1 vote
1 answer
169 views

If I put this in my arduino program, in main.cpp, I suddenly run out of memory for flash program size: if(msgSize > 2) { //sr::sequentialRead(&serialRead, newTram.hash); uint8_t bytes[...
Tomáš Zato's user avatar
0 votes
1 answer
135 views

I am running a project where I have multiple ESP32s communicate over WebSockets and I am using the Arduino IDE 2.3.4 for it. The communication primarily uses JSON and sends it as strings. To work with ...
Joel's user avatar
  • 103