Need assistance compiling the ARM based Eyes project from th

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
TimRosener
 
Posts: 1
Joined: Mon Mar 01, 2021 4:32 pm

Need assistance compiling the ARM based Eyes project from th

Post by TimRosener »

I am having some challenges compiling. I am getting a message that I am missing a pio.h file. Any help would be appreciated.

Here is a verbose dump of the compile notes

Arduino: 1.8.16 (Mac OS X), TD: 1.55, Board: "Teensy 4.0, Serial, 600 MHz, Faster, US English"

/private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/hardware -hardware /Users/timrosener/Library/Arduino15/packages -tools /private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/tools-builder -tools /private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/hardware/tools/avr -tools /Users/timrosener/Library/Arduino15/packages -built-in-libraries /private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/libraries -libraries /Users/timrosener/Documents/Arduino/libraries -fqbn=teensy:avr:teensy40:usb=serial,speed=600,opt=o2std,keys=en-us -vid-pid=0000_0000 -ide-version=10816 -build-path /var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/arduino_build_412626 -warnings=none -build-cache /var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/arduino_cache_392355 -verbose /Users/timrosener/Downloads/Uncanny_Eyes-master/uncannyEyes/uncannyEyes.ino
/private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/hardware -hardware /Users/timrosener/Library/Arduino15/packages -tools /private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/tools-builder -tools /private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/hardware/tools/avr -tools /Users/timrosener/Library/Arduino15/packages -built-in-libraries /private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/libraries -libraries /Users/timrosener/Documents/Arduino/libraries -fqbn=teensy:avr:teensy40:usb=serial,speed=600,opt=o2std,keys=en-us -vid-pid=0000_0000 -ide-version=10816 -build-path /var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/arduino_build_412626 -warnings=none -build-cache /var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/arduino_cache_392355 -verbose /Users/timrosener/Downloads/Uncanny_Eyes-master/uncannyEyes/uncannyEyes.ino
Using board 'teensy40' from platform in folder: /private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/hardware/teensy/avr
Using core 'teensy4' from platform in folder: /private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/hardware/teensy/avr
Detecting libraries used...
/private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=155 -DARDUINO=10816 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4 /var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/arduino_build_412626/sketch/uncannyEyes.ino.cpp -o /dev/null
Alternatives for rp2040_pio.h: [[email protected]]
ResolveLibrary(rp2040_pio.h)
-> candidates: [[email protected]]
/private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=155 -DARDUINO=10816 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/private/var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/AppTranslocation/5F467C25-DAD9-4AAA-A47F-F54838241837/d/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4 -I/Users/timrosener/Documents/Arduino/libraries/Adafruit_NeoPixel /var/folders/3d/726zxzjd7j51k401dg7fvx8w0000gn/T/arduino_build_412626/sketch/uncannyEyes.ino.cpp -o /dev/null
Alternatives for hardware/pio.h: []
ResolveLibrary(hardware/pio.h)
-> candidates: []
In file included from /Users/timrosener/Downloads/Uncanny_Eyes-master/uncannyEyes/uncannyEyes.ino:3:0:
/Users/timrosener/Documents/Arduino/libraries/Adafruit_NeoPixel/rp2040_pio.h:9:26: fatal error: hardware/pio.h: No such file or directory
compilation terminated.
Using library Adafruit_NeoPixel at version 1.10.3 in folder: /Users/timrosener/Documents/Arduino/libraries/Adafruit_NeoPixel
Error compiling for board Teensy 4.0.

User avatar
michaelmeissner
 
Posts: 1821
Joined: Wed Aug 29, 2012 12:40 am

Re: Need assistance compiling the ARM based Eyes project fro

Post by michaelmeissner »

The trouble is the Uncanny Eyes software was written for the Teensy 3.1/3.2 micro-controller, and it will run on the Teensy 3.5 and 3.6 micro-controllers. But the Uncanny Eyes software and/or the ST7735 library software internally uses some internal features of the Teensy 3.x support that are not implemented on the Teensy 4.x. .

However, there is a Teensy variant of the ST7735 software, known as the ST7735_t3 that has optimizations for both the Teensy 3.x and 4.x processors, and there are fixed versions of the uncannyEyes software. In the examples for the ST7735_t3 are two variants of the Uncanny Eyes.
  • uncannyEyes7735 -- This is the original software for the 128x128 OLED or TFT screens. It has been a while since I've used this code, but I suspect the Teensy 4.x will run 2 eyes slower than the Teensy 3.x processors. This is due to the fact that if you pick the right CS/DC pins, the Teensy 3.x will use some special optimizations that are different (and more constrained) in the Teensy 4.x; (and)
  • uncannyEyes_async_st7789_240x240 -- This is a variant of the newer uncannyEyes software that is used on the Hallowing M4 and the Monster M4SK that drives the 240x240 OLED screen. It will only work on Teensy 4.0/4.1 (and maybe MicroMod) because it needs much more memory for buffering the screens that the Teensy 3.x boards don't have. If you want to use 2 eyes, you will need to use the second SPI port. On the Teensy 4.0, you will need to solder wires to access pins 26 and 27 that are on solder pads underneath the Teensy. For the Teensy 4.1, the pins are available in the standard pinout. Due to the Teensy not having USB accessible flash drives at the time the examples were written, part used the M4 and M4SK to read eye bmps from a flash drive is not there, and you a limited to a single bmp that is provided. At the present time, only one 240x240 bmp is provided, so you have to use the hazel eyes. I suspect you could reverse engineer the other eyes that are available in the M4/M4SK builds, and write a .h file with the bmp file.
I haven't worked on the code, other than possibly some tweaks around the edges, and being an eye fanatic and suggesting it be used as a test case when the ST7735 library was being tweaked. If you want to contact the authors about either of these ports, you should post a query on the Teensy forum (https://forum.pjrc.com/).

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”