Hey i need some help with this code. this is the error it is displaying and idk what to do.
c:\Users\Admin\Documents\Arduino\Launchpad_Receiver\Launchpad_Receiver.ino: In function 'void loop()':
c:\Users\Admin\Documents\Arduino\Launchpad_Receiver\Launchpad_Receiver.ino:20:26: error: void value not ignored as it ought to be
done = radio.read (msg, 1);
^
Compilation error: Error: 2 UNKNOWN: exit status 1
That message would typically come from using a return value from a function that does not return a value (a function declared as void).
Does the library used for radio define its own read function?
The error message suggests that the code you have is intended to be used with a different library. Post links to where you found/downloaded everything.
Hey, i have been trying to upload this code to my clone arduino nano and it is not working. The error message says "Error 2 UNKNOWN: no FQBN provided". I have installed the ch340G drivers and it is still not working. CAn i please have some help! Thanks!
Please read the post at the start of any forum , entitled "How to use this Forum".
This will help with advice on how to present your code and problems.
What code?
Can you load other code to the Nano, like "Blink without delay" from the "Examples" folder?
You may need to select that the Nano has "Old Bootloader" fitted, as most clones do not have the up to date firmware.
@lcat06
I'm not really sure if your 2 questions are the same or not, but they look related so I have merged them into one. Please do not post multiple questions on the same subject.
The error about FQBN is caused by not having a board selected. Unlike the classic Arduino IDE, the Arduino IDE 2.x installation does not come with the "Arduino AVR Boards" platform, or any other boards platform pre-installed, so on first startup you will not have any board selected (https://github.com/arduino/arduino-ide/issues/56).
The "Arduino AVR Boards" platform is installed automatically via the Boards Manager infrastructure (https://github.com/arduino/arduino-ide/pull/497), so as soon as that installation completes you are then able to select a board.
Unfortunately, the error message that results from attempting to compile without a board selected does not effectively communicate this situation to the user (https://github.com/arduino/arduino-ide/issues/62).
The fact that @lcat06 shows that they did finally select the board. You could never get to a true compilation error without a board selected because the compilation process can't even start without a board selected.
The thread is a bit confusing because the merge combined the two topics out of chronological order, but you can see from the timestamps that the topic about the FQBN error was made before the one about the "void value not ignored" error.