44
votes
Accepted
Warning when verifying sketch with VS code
Thanks to @Majenko I looked some place new:
documented in the arduino plugin of VS Code Arduino Extension there is an option to set an output directory.
Note though that according to this it should ...
30
votes
Warning when verifying sketch with VS code
To clarify the answer, for those new in arduino world +StudioCode (source: https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.vscode-arduino )
The following settings are as per sketch ...
20
votes
How to I make the Tx and Rx pins on an ESP-8266-01 into GPIO pins?
Add this to your code at the beginning of set void setup():
//********** CHANGE PIN FUNCTION TO GPIO **********
//GPIO 1 (TX) swap the pin to a GPIO.
pinMode(1, FUNCTION_3);
//GPIO 3 (RX) swap the ...
15
votes
Accepted
List of Arduino board preprocessor #defines
The list of board symbols can be generated by this shell command:
$ grep board= boards.txt | cut -f2 -d= | sort -u
AVR_ADK
AVR_BT
AVR_DUEMILANOVE
AVR_ESPLORA
AVR_ETHERNET
AVR_FIO
AVR_GEMMA
...
14
votes
Accepted
Is it possible to upload previously compiled binary?
Yes!
Its possible that you can upload a previously complied binary, using
AVRDUDE - a command line utility which is actually used to upload binaries, behind the arduino IDE.
You can find AVRDUDE in
...
8
votes
Accepted
Can I use Visual Studio instead of Arduino IDE?
I only use Visual Studio for Arduino programming.
Arduino Plugin for Visual Studio
7
votes
List of Arduino board preprocessor #defines
Mikael has the right answer, but there are multiple boards.txt files depending on the installed boards with board manager,
modifying the command to:
grep board= `find . -name boards.txt` | cut -f2 -d=...
6
votes
Access denied when Uploading
There might be another device has already connected to that port. It could even be a terminal emulator which is left connected from last debugging session.
Otherwise, make sure that your UNO is ...
6
votes
Accepted
Collection of functions for arduino IDE
You need to "split" your library.
Placing full functions inside a header file (.h) is bad form and causes the exact problem you are seeing. Every time you include the header file you create an ...
5
votes
Is it possible to reduce the size of this program to 1KB
There are several problems with your program as shown that make a good answer impossible. After I list those problems, I'll then proceed to give an answer, partly good, partly bad. The good part is ...
5
votes
Accepted
How to simply close a tab?
You cannot close a tab in the Arduino IDE. If a file exists in the sketch then it is there with a tab. Deleting a tab deletes the file.
In the Arduino IDE a tab is a file and a file is a tab. You ...
5
votes
How to I make the Tx and Rx pins on an ESP-8266-01 into GPIO pins?
Tx = GPIO 1
Rx = GPIO 3
Should work but be careful cause if they burn, you won't be able to program or even talk to the ESP anymore.
5
votes
Accepted
Porting code from Arduino IDE to other IDEs - expected code size reduction
You don't need to abandon the Arduino IDE.
Let me quote from my forum post about sketch sizes.
Introduction
Every now and again this subject pops up on the Arduino forum. Why does it take 1000 ...
4
votes
What are the other IDEs for Arduino?
PlatformIO
I use GitHub's Atom text editor with the PlatformIO package.
I like both of them:
Atom has various useful built-in features and over 6,000 packages (which can be easily downloaded and ...
4
votes
Cannot upload sketch to Arduino Nano
When using a cheap knockoff Nano, it seems that in the newer versions of the Arduino IDE (at least in 1.8.8), you may need to select "ATmega328P (Old bootloader)" from the Processor options under the ...
4
votes
Accepted
Writing your own Arduino flashing tool
This application already exists. It's called AVRDUDE:
http://www.nongnu.org/avrdude/
You can download it compiled for Windows at the link above. This is the very flashing tool that the Arduino IDE ...
4
votes
Certain String Characters To Int
How about
char array[5] = "T 20";
int num = atoi(array+2);
This obviously assumes that all your strings are of the same format "A NN". If not, you can try parsing it using strtok(). See this ...
4
votes
Accepted
Is there alternative to arduino IDE program ESP8266 and ESP32 with arduino toolchain?
Not an exhaustive list. Most advantages will be subjective.
UECIDE - Wide variety of boards, not only Arduino, better editor and serial monitor, plug-in based modules.
PlatformIO (Available as plugin ...
4
votes
Are there any alternatives to Tinkercad Circuits that is PC application based instead of web app based?
I work with the wokwi Arduino simulator
It is faster
It uses the latest Arduino IDE for compilation
It almost runs in real-time. For example, your job of 15 seconds might get executed at about the ...
4
votes
Random "Compilation error: Error: 13 INTERNAL: exit status 1". No clue how to resolve or even what causes this error
The problem with that error message is that you are only reading the very last line. That line says "Oops, it didn't compile". The actual error message occurs before that. You need to read ...
3
votes
List of Arduino board preprocessor #defines
The first blank is the platform. This is "AVR" for AVRs, "SAM" for SAM-based Arduinos, etc. This is derived from the platform directory containing the core.
The second blank is the board. This comes ...
3
votes
Problem: "stray '#' in program"
From the Instructable you linked:
matrix8x8.pde is a program in Processing to build your own displays.
You downloaded the Processing code, not the Arduino code. See above that:
cube8x8x8.pde ...
3
votes
What are the other IDEs for Arduino?
Clion + PlatformIO
I personally use Clion which is a cross-platform IDE along with PlatformIO which is a cross platform build system for arduino and alike.
Clion because I love the jet brains IDEs. ...
3
votes
How to I make the Tx and Rx pins on an ESP-8266-01 into GPIO pins?
To work TX RX as GPIO Serial.begin() must be deleted from code.
3
votes
Accepted
How to get the ID of an Arduino?
Arduino Pro mini is based on Atmega328 which does not have a unique ID. It has only device signature which you can read if you turn on Show verbose output during upload in Arduino IDE's File > ...
3
votes
Accepted
Array Addressing
No, but you can use a struct:
struct flags {
uint8_t power;
uint8_t jump3;
uint8_t jump7;
.... etc ....
};
struct flags myFlags;
myFlags.power = 1;
if (myFlags.jump3) {
.... ...
3
votes
"Stand-alone" serial monitor
Consider building your own monitor in Python. This gives you flexibility since Python is cross platform and you can tailor the monitor to your needs.
Install Python.
Install pySerial (pip install ...
3
votes
"Stand-alone" serial monitor
On macOS, you can use the built-in screen command, e.g.:
screen /dev/cu.usbmodem14201 9600
To exit, control-A followed by control-\
3
votes
How to install several IDE version on my PC
Arduino.cc have a guide :
https://www.arduino.cc/en/Guide/PortableIDE
The gist is:
Download the desired version in ZIP format
Unpack the content in the zip file to a folder
Start the arduino.exe in ...
3
votes
Accepted
Use std::list in Arduino programming
I back up Michel Keijzers' suggestion to use a plain array, especially
given the tiny amount of RAM in your MCU (only 256 bytes).
Concerning the removal of items from the list, and given that ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ide × 130arduino-ide × 31
arduino-uno × 22
library × 12
programming × 10
esp8266 × 9
c++ × 8
serial × 7
uploading × 7
arduino-nano × 6
esp32 × 4
sketch × 4
linux × 4
visualstudio × 4
build × 4
arduino-mega × 3
attiny × 3
avrdude × 3
compile × 3
software × 3
avr-gcc × 3
windows × 3
i2c × 2
interrupt × 2
nodemcu × 2