0

uncanny eyes with Teensy 3.1
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: uncanny eyes with Teensy 3.1

by imwoody36 on Mon Apr 15, 2019 8:37 am

I feel validated that im not the only one with problems

imwoody36
 
Posts: 18
Joined: Wed Apr 26, 2017 2:20 pm

Re: uncanny eyes with Teensy 3.1

by imwoody36 on Mon Apr 15, 2019 9:32 am

okay,
I installed the new arduino gui 1.8.9
and the teensy installer without any add ons (for 1.8.9 arduino beta)
and I verified the two librarys ...gfx and 1351 as instructed.


still get the invalid conversion spi error shown below

Arduino: 1.8.9 (Windows 10), TD: 1.46-beta10, Board: "Teensy 3.2 / 3.1, Serial, 72 MHz, Faster, US English"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Steve Woodruff\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Steve Woodruff\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Steve Woodruff\Documents\Arduino\libraries -fqbn=teensy:avr:teensy31:usb=serial,speed=72,opt=o2std,keys=en-us -ide-version=10809 -build-path C:\Users\STEVEW~1\AppData\Local\Temp\arduino_build_869234 -warnings=none -build-cache C:\Users\STEVEW~1\AppData\Local\Temp\arduino_cache_690023 -verbose C:\Users\Steve Woodruff\Documents\Arduino\Uncanny_Eyes-master\uncannyEyes\uncannyEyes.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Steve Woodruff\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Steve Woodruff\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Steve Woodruff\Documents\Arduino\libraries -fqbn=teensy:avr:teensy31:usb=serial,speed=72,opt=o2std,keys=en-us -ide-version=10809 -build-path C:\Users\STEVEW~1\AppData\Local\Temp\arduino_build_869234 -warnings=none -build-cache C:\Users\STEVEW~1\AppData\Local\Temp\arduino_cache_690023 -verbose C:\Users\Steve Woodruff\Documents\Arduino\Uncanny_Eyes-master\uncannyEyes\uncannyEyes.ino
Using board 'teensy31' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
Using core 'teensy3' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
Detecting libraries used...
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=146 -DARDUINO=10809 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "C:\\Users\\STEVEW~1\\AppData\\Local\\Temp\\arduino_build_869234\\sketch\\uncannyEyes.ino.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=146 -DARDUINO=10809 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\STEVEW~1\\AppData\\Local\\Temp\\arduino_build_869234\\sketch\\uncannyEyes.ino.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=146 -DARDUINO=10809 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_GFX_Library" "C:\\Users\\STEVEW~1\\AppData\\Local\\Temp\\arduino_build_869234\\sketch\\uncannyEyes.ino.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=146 -DARDUINO=10809 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_SSD1351_library" "C:\\Users\\STEVEW~1\\AppData\\Local\\Temp\\arduino_build_869234\\sketch\\uncannyEyes.ino.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=146 -DARDUINO=10809 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_SSD1351_library" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI\\SPI.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=146 -DARDUINO=10809 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_SSD1351_library" "C:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_GFX_Library\\Adafruit_GFX.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=146 -DARDUINO=10809 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_SSD1351_library" "C:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_GFX_Library\\Adafruit_SPITFT.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=146 -DARDUINO=10809 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_SSD1351_library" "C:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_GFX_Library\\glcdfont.c" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=146 -DARDUINO=10809 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_SSD1351_library" "C:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_SSD1351_library\\Adafruit_SSD1351.cpp" -o nul
Generating function prototypes...
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=146 -DARDUINO=10809 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_SSD1351_library" "C:\\Users\\STEVEW~1\\AppData\\Local\\Temp\\arduino_build_869234\\sketch\\uncannyEyes.ino.cpp" -o "C:\\Users\\STEVEW~1\\AppData\\Local\\Temp\\arduino_build_869234\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\STEVEW~1\\AppData\\Local\\Temp\\arduino_build_869234\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/precompile_helper" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\STEVEW~1\\AppData\\Local\\Temp\\arduino_build_869234" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=146 -DARDUINO=10809 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\STEVEW~1\\AppData\\Local\\Temp\\arduino_build_869234/pch/Arduino.h" -o "C:\\Users\\STEVEW~1\\AppData\\Local\\Temp\\arduino_build_869234/pch/Arduino.h.gch"
Using previously compiled file: C:\Users\STEVEW~1\AppData\Local\Temp\arduino_build_869234\pch\Arduino.h.gch

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=146 -DARDUINO=10809 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\STEVEW~1\\AppData\\Local\\Temp\\arduino_build_869234/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Steve Woodruff\\Documents\\Arduino\\libraries\\Adafruit_SSD1351_library" "C:\\Users\\STEVEW~1\\AppData\\Local\\Temp\\arduino_build_869234\\sketch\\uncannyEyes.ino.cpp" -o "C:\\Users\\STEVEW~1\\AppData\\Local\\Temp\\arduino_build_869234\\sketch\\uncannyEyes.ino.cpp.o"
uncannyEyes: In function 'void setup()':
uncannyEyes:132: error: invalid conversion from 'SPIClass*' to 'int8_t {aka signed char}' [-fpermissive]
eye[e].display = new displayType(&TFT_SPI, eyeInfo[e].select, DISPLAY_DC, -1);

^

In file included from C:\Users\STEVEW~1\AppData\Local\Temp\arduino_build_869234\sketch\config.h:80:0,

from C:\Users\Steve Woodruff\Documents\Arduino\Uncanny_Eyes-master\uncannyEyes\uncannyEyes.ino:32:

C:\Users\Steve Woodruff\Documents\Arduino\libraries\Adafruit_SSD1351_library/Adafruit_SSD1351.h:90:5: note: initializing argument 1 of 'Adafruit_SSD1351::Adafruit_SSD1351(int8_t, int8_t, int8_t, int8_t, int8_t)'

Adafruit_SSD1351(int8_t cs_pin, int8_t dc_pin, int8_t mosi_pin,

^

Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SPI
Using library Adafruit_GFX_Library at version 1.4.9 in folder: C:\Users\Steve Woodruff\Documents\Arduino\libraries\Adafruit_GFX_Library
Using library Adafruit_SSD1351_library at version 1.2.0 in folder: C:\Users\Steve Woodruff\Documents\Arduino\libraries\Adafruit_SSD1351_library
invalid conversion from 'SPIClass*' to 'int8_t {aka signed char}' [-fpermissive]

imwoody36
 
Posts: 18
Joined: Wed Apr 26, 2017 2:20 pm

Re: uncanny eyes with Teensy 3.1

by pburgess on Tue Apr 16, 2019 1:04 am

I don’t have a fix yet, but just letting you know I’ve been able to reproduce it now. Oddly the issue manifests on Windows but not on Mac. I’ll probably have a workaround tomorrow, will let you know here when that happens.

pburgess
 
Posts: 4003
Joined: Sun Oct 26, 2008 2:29 am

Re: uncanny eyes with Teensy 3.1

by pburgess on Tue Apr 16, 2019 2:11 pm

Required a small change in the uncannyEyes.ino sketch, the latest can be retrieved from Github:
https://github.com/adafruit/Uncanny_Eyes

I’m a bit baffled as to why the problem only appeared on Windows, but it does appear to be fixed now. Thanks for your patience.

pburgess
 
Posts: 4003
Joined: Sun Oct 26, 2008 2:29 am

Re: uncanny eyes with Teensy 3.1

by imwoody36 on Tue Apr 16, 2019 4:43 pm

it compiled and loaded for me!,
no display yet , but it was 2 minutes ago and I expect i will find a wiring error soon.

thanks for your efforts

imwoody36
 
Posts: 18
Joined: Wed Apr 26, 2017 2:20 pm

Please be positive and constructive with your questions and comments.