Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Imageloader TFT Gizmo
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Imageloader TFT Gizmo

by elputnam on Sat Apr 04, 2020 5:51 pm

Hello,

I am trying to run the imageloader_tft_gizmo example through Arduino with a CPX, but I receive the following error message:

[code]imageloader_tft_gizmo:59:10: error: 'class Serial_' has no member named 'printf'; did you mean 'print'?

I have not modified the code and I am using Windows 10.

elputnam
 
Posts: 28
Joined: Wed Aug 19, 2015 6:16 pm

Re: Imageloader TFT Gizmo

by adafruit_support_carter on Mon Apr 06, 2020 12:33 pm

What Board do you have selected in the Arduino IDE under Tools -> Board?

adafruit_support_carter
 
Posts: 17149
Joined: Tue Nov 29, 2016 2:45 pm

Re: Imageloader TFT Gizmo

by elputnam on Mon Apr 06, 2020 1:42 pm

CPX.PNG
CPX.PNG (2.59 KiB) Viewed 50 times

Circuit Playground Express

elputnam
 
Posts: 28
Joined: Wed Aug 19, 2015 6:16 pm

Re: Imageloader TFT Gizmo

by adafruit_support_carter on Mon Apr 06, 2020 5:43 pm

I tried to investigate this and I couldn't even get as far as you could. Can you try the simple example I posted here and see if you get the same behavior?
https://github.com/adafruit/Adafruit_Arcada/issues/33

adafruit_support_carter
 
Posts: 17149
Joined: Tue Nov 29, 2016 2:45 pm

Re: Imageloader TFT Gizmo

by elputnam on Wed Apr 08, 2020 11:28 am

Hi,

I tried the code you sent, but it did not work. Here is the error message:

Arduino: 1.8.12 (Windows Store 1.8.33.0) (Windows 10), Board: "Adafruit Circuit Playground Express"

In file included from sketch\AracadaTest.ino.cpp:1:0:

C:\Users\0123213s\Documents\ArduinoData\packages\arduino\hardware\samd\1.8.6\cores\arduino/Arduino.h:124:0: warning: "digitalPinToInterrupt" redefined

#define digitalPinToInterrupt(P) ( P )



In file included from C:\Users\0123213s\Documents\ArduinoData\packages\arduino\hardware\samd\1.8.6\cores\arduino/delay.h:23:0,

from C:\Users\0123213s\Documents\ArduinoData\packages\arduino\hardware\samd\1.8.6\cores\arduino/Arduino.h:81,

from sketch\AracadaTest.ino.cpp:1:

C:\Users\0123213s\Documents\ArduinoData\packages\arduino\hardware\samd\1.8.6\variants\circuitplay/variant.h:57:0: note: this is the location of the previous definition

#define digitalPinToInterrupt(P) (g_APinDescription[P].ulExtInt)



In file included from C:\Users\0123213s\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Operators/VariantCasts.hpp:7:0,

from C:\Users\0123213s\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Operators/VariantOperators.hpp:7,

from C:\Users\0123213s\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRef.hpp:12,

from C:\Users\0123213s\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Array/ArrayIterator.hpp:8,

from C:\Users\0123213s\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Array/ArrayRef.hpp:8,

from C:\Users\0123213s\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:17,

from C:\Users\0123213s\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,

from C:\Users\0123213s\Documents\Arduino\libraries\Adafruit_Arcada_Library/arcadatype.h:15,

from C:\Users\0123213s\Documents\Arduino\libraries\Adafruit_Arcada_Library/Boards/Adafruit_Arcada_CircuitPlaygroundExpress.h:29,

from C:\Users\0123213s\Documents\Arduino\libraries\Adafruit_Arcada_Library/Adafruit_Arcada.h:20,

from C:\Users\0123213s\Desktop\CircuitPlayground\AracadaTest\AracadaTest.ino:1:

C:\Users\0123213s\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Polyfills/attributes.hpp:18:0: warning: "DEPRECATED" redefined

#define DEPRECATED(msg) __attribute__((deprecated(msg)))



In file included from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\libraries\Adafruit_Circuit_Playground/Adafruit_Circuit_Playground.h:23:0,

from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\libraries\Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.h:3,

from C:\Users\0123213s\Documents\Arduino\libraries\Adafruit_Arcada_Library/Boards/Adafruit_Arcada_CircuitPlaygroundExpress.h:2,

from C:\Users\0123213s\Documents\Arduino\libraries\Adafruit_Arcada_Library/Adafruit_Arcada.h:20,

from C:\Users\0123213s\Desktop\CircuitPlayground\AracadaTest\AracadaTest.ino:1:

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\libraries\Adafruit_Circuit_Playground/utility/Adafruit_CPlay_Mic.h:10:0: note: this is the location of the previous definition

#define DEPRECATED(func) func __attribute__ ((deprecated))



In file included from C:\Users\0123213s\Documents\Arduino\libraries\Adafruit_Arcada_Library/Adafruit_Arcada.h:20:0,

from C:\Users\0123213s\Desktop\CircuitPlayground\AracadaTest\AracadaTest.ino:1:

C:\Users\0123213s\Documents\Arduino\libraries\Adafruit_Arcada_Library/Boards/Adafruit_Arcada_CircuitPlaygroundExpress.h: In member function 'virtual void Adafruit_Arcada::displayBegin()':

C:\Users\0123213s\Documents\Arduino\libraries\Adafruit_Arcada_Library/Boards/Adafruit_Arcada_CircuitPlaygroundExpress.h:5:24: error: 'SPI1' was not declared in this scope

#define ARCADA_TFT_SPI SPI1

^

C:\Users\0123213s\Documents\Arduino\libraries\Adafruit_Arcada_Library/Boards/Adafruit_Arcada_CircuitPlaygroundExpress.h:50:49: note: in expansion of macro 'ARCADA_TFT_SPI'

Adafruit_ST7789 *tft = new Adafruit_ST7789(&ARCADA_TFT_SPI, ARCADA_TFT_CS,

^~~~~~~~~~~~~~

C:\Users\0123213s\Documents\Arduino\libraries\Adafruit_Arcada_Library/Boards/Adafruit_Arcada_CircuitPlaygroundExpress.h:5:24: note: suggested alternative: 'SPI'

#define ARCADA_TFT_SPI SPI1

^

C:\Users\0123213s\Documents\Arduino\libraries\Adafruit_Arcada_Library/Boards/Adafruit_Arcada_CircuitPlaygroundExpress.h:50:49: note: in expansion of macro 'ARCADA_TFT_SPI'

Adafruit_ST7789 *tft = new Adafruit_ST7789(&ARCADA_TFT_SPI, ARCADA_TFT_CS,

^~~~~~~~~~~~~~

exit status 1
Error compiling for board Adafruit Circuit Playground Express.

elputnam
 
Posts: 28
Joined: Wed Aug 19, 2015 6:16 pm

Re: Imageloader TFT Gizmo

by adafruit_support_carter on Thu Apr 09, 2020 11:10 am

In your case it looks like something may be happening with your Arduino installation. Are you able to load a basic Blink example OK?

adafruit_support_carter
 
Posts: 17149
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.