Seems like you didn't install all required libraries.
I don't know whether Adafruit_GFX.h is included in the MCUFRIEND_kbv library or not, so you should check that.
If it is not, install that library by using the library manager.
I have it installed for some time already, so i can't tell you whether it came as part of something else or not.
Also check to see you need other libraries as well for this sketch of yours.
By the way, this thread wasn't meant for questions like this.
Please be sure you put you questions in the correct location.
That way, chances are a lot better you will be promptly helped with some suiting suggestions.
Hi!
I wrote a C++ class on debian stretch on a raspberry that communicates with an Adafruit ItsyBitsy M4 or a Feather Express M4 using libusb. Well - native USB is a little bit more tricky and I would not molest anyone when I would be unsure that there is something really strange going on:
When compiling my code for the Feather with Arduino IDE 1.8.5, all works fine. The Raspi sends something, and the Feather responds accordingly, and all is fine.
That works also when I use the terminal of the Arduino IDE. I send something, and the feather reacts. I use "Serial.write()" to send data via USB and "Serial.read()" on the Feather.
When uploading the code from Arduino IDE 1.8.7
all works fine with the IDE terminal
when connecting with the Raspberry and my C++ program, I can send data which are recognized by the Feather (at least I think so - i fire up the red LED on pin 13 for certain characters, and turn it off with others) but
i cannot send anything ... both with the ItsyBitsy M4 and the Feather Express M4!!!
I have not tried it yet with another native USB board such as the Teensy, but this is really strange - does someone have an idea???
yours
wolfi
PS: cross posted this also in the Adafruit forum
ARDUINO 1.8.8 2018.12.07
[ide]
* Fixed: command line parsing of version parameters when installing cores/libraries
* Platform indexes are now downloaded using https
* Fixed: on some newer linux distrubitions, NPE when loading GTK look-and-feel without libgtk2 installed
* MacOSX: added touch bar support
* MacOSX: do not exit app after closing last window
* Fixed: serial monitor timestamps not always printed. Thanks @nitram509
* Kill active programmer if still alive after closing last IDE window
* Fixed: "Export compiled binary" now works also with unsaved sketches
* Improved automatic port re-selection after upload
* Added scroller to "INCOMPATIBLE" examples menu
[wifi-firmware]
* Added firmware upgrade for NINA-based boards
The newly released 1.8.8 IDE does not seem to pay attention to the "export.application.fullscreen=true" setting. Reverting back to the 1.8.7 IDE (using the same preferences.txt file) restores functionality remembering fullscreen upon startup.
There's something weird going on with 1.8.8 preferences. As previous poster stated the fullscreen is wonky but so is the opening of the last sketch used. It now opens with a empty sketch where in 1.8.7 it opened the last used. Reverting back to 1.8.7.
1.8.8 seems to be broken for me. OS 10.9.5/MacbookPro 13.3" from 2012 (i.e. no touch bar)
Symptoms : IDE starts up, loads boards etc, opens window to default sketch and immediately quit.
Looks like added touch bar support broke IDE for older Macs without touch bar; (reverting to 1.8.7 resolved the problem)
I think you diagnosed the problem correctly. The Arduino developers have already been notified of this bug and have made a fix:
If you want to try it out, you can install the Arduino IDE hourly build:
The hourly build is primarily intended for beta testing and may not be as stable as the production releases. However, the fix of this bug is only one of two significant changes made to the IDE's code since the 1.8.8 release so I think it should be just as good as 1.8.8, except without the touch bar bug.
It seems that the Wifi firmware updater isn't working properly on IDE 1.8.8. I was attempting to update my new WINC 1500 and the only firmware offered is the Model A (19.4.4) not the current version of Model B (19.5.4). I ran IDE 1.8.7 on my older MacBook and it offered versions from 19.4.4 up to the required version of 19.5.4.
I downloaded the nightly build and it also does not offer the correct firmware versions.
I was able to update the firmware correctly with the 1.8.7 version, just wanted to let everyone know of this issue.
Fixed: command line parsing of version parameters when installing cores/libraries
Platform indexes are now downloaded using https
Fixed: on some newer linux distrubitions, NPE when loading GTK look-and-feel without libgtk2 installed
MacOSX: added touch bar support
MacOSX: do not exit app after closing last window
Fixed: serial monitor timestamps not always printed. Thanks @nitram509
Kill active programmer if still alive after closing last IDE window
Fixed: "Export compiled binary" now works also with unsaved sketches
Improved automatic port re-selection after upload
Added scroller to "INCOMPATIBLE" examples menu
Wifi Firmware
Added firmware upgrade for NINA-based boards
DaveAhrendt:
There's something weird going on with 1.8.8 preferences. As previous poster stated the fullscreen is wonky but so is the opening of the last sketch used. It now opens with a empty sketch where in 1.8.7 it opened the last used. Reverting back to 1.8.7.
Thanks for reporting this. There is now a proposed fix:
Test builds are available at the link above if you want to try it out.
Hey team arduino I have a problem in uploading code to my arduino uno r3 and I am doing this in Windows 7 and I also checked your help box and done exactly given there to update driver installation. I only found unknown sources and tried to update it but my windows in online search send a message that 'Windows is unable to find driver software for your unknown device
I downloaded the new version but suddenly " while (Serial.available()==0){ } " stopped working so I uninstalled and kept working on the older version if someone can help it would be so thankful
Kshehab91:
I downloaded the new version but suddenly " while (Serial.available()==0){ } " stopped working so I uninstalled and kept working on the older version if someone can help it would be so thankful
Kshehab91:
I downloaded the new version but suddenly " while (Serial.available()==0){ } " stopped working so I uninstalled and kept working on the older version if someone can help it would be so thankful
I can't add a label as the very last item in the main loop.
This works:
void loop() {
// put your main code here, to run repeatedly:
label:
delay(1);
}
This doesn't:
void loop() {
// put your main code here, to run repeatedly:
label:
}
The error message is:
exit status 1
expected primary-expression before '}' token
I wanted to use goto (yeah, I know goto is considered harmful) in order to break out of a deeply nested loop and go to the very end of the sketch, where nothing more should be done.
Another thing: if I enable code folding, fold a function with an error inside it, and compile, the IDE will mark the very top line of the sketch as erroneous (in pink) rather than the actual line with the error.
I wish that it would either mark the first line of the function itself, or automatically unfold the function and then mark the correct line. As it is now I have to hunt for the broken function.
A related question: is there a shortcut to fold or unfold all code at the same time?
GalFisk:
I wanted to use goto (yeah, I know goto is considered harmful) in order to break out of a deeply nested loop and go to the very end of the sketch, where nothing more should be done.
Are you aware that once you reach the end of the loop function, it will just run the loop over again? If you really do want to do nothing more ever, you can use this line of code:
while(true) {} // endless loop that does nothing
GalFisk:
Another thing: if I enable code folding, fold a function with an error inside it, and compile, the IDE will mark the very top line of the sketch as erroneous (in pink) rather than the actual line with the error.
I wish that it would either mark the first line of the function itself, or automatically unfold the function and then mark the correct line. As it is now I have to hunt for the broken function.
I have reported this to the Arduino developers:
Thanks for letting us know of the issue.
GalFisk:
A related question: is there a shortcut to fold or unfold all code at the same time?
Not that I know of (I'd be interested to hear if there is one). You can fold or unfold all via Right Click > Folding > Collapse/Expand All Folds