### [solved] Code for kickstarter robot does not compile

AlanKilian · 5 · 1857

#### AlanKilian

• Full Member
• Posts: 16
Using Arduino 1.8.12 and the code from this link
https://learn.tinycircuits.com/Wirelings/Wireling_Basic-Robot_Kit_Tutorial/

I get the following error message:
Code: [Select]
`Arduino: 1.8.12 (Windows 10), Board: "RobotZero, Default"C:\Users\kilian\Downloads\LineFollower\LineFollower\LineFollower.ino: In function 'void displayGraph(int, int, int, int, int, int, int*, int)':LineFollower:257:16: error: 'class GraphicsBuffer' has no member named 'drawLine'; did you mean 'drawPixel'?   screenBuffer.drawLine(xDispPos, yDispPos, xDispPos + width, yDispPos, 0xFFFF);                ^~~~~~~~                drawPixelLineFollower:258:16: error: 'class GraphicsBuffer' has no member named 'drawLine'; did you mean 'drawPixel'?   screenBuffer.drawLine(xDispPos, yDispPos, xDispPos, yDispPos + height, 0xFFFF);                ^~~~~~~~                drawPixelLineFollower:259:16: error: 'class GraphicsBuffer' has no member named 'drawLine'; did you mean 'drawPixel'?   screenBuffer.drawLine(xDispPos + width, yDispPos, xDispPos + width, yDispPos + height, 0xFFFF);                ^~~~~~~~                drawPixelLineFollower:260:16: error: 'class GraphicsBuffer' has no member named 'drawLine'; did you mean 'drawPixel'?   screenBuffer.drawLine(xDispPos, yDispPos + height, xDispPos + height, yDispPos + height, 0xFFFF);                ^~~~~~~~                drawPixelLineFollower:265:18: error: 'class GraphicsBuffer' has no member named 'drawLine'; did you mean 'drawPixel'?     screenBuffer.drawLine(xDispPos + i - 1, yDispPos + height - sample0, xDispPos + i, yDispPos + height - sample, 0xFFFF);                  ^~~~~~~~                  drawPixelexit status 1'class GraphicsBuffer' has no member named 'drawLine'; did you mean 'drawPixel'?This report would have more information with"Show verbose output during compilation"option enabled in File -> Preferences.`
« Last Edit: March 01, 2020, 06:30:34 PM by AlanKilian »

#### lennevia

• Hero Member
• Posts: 283
Hello!

It looks like you need the most updated version of the GraphicsBuffer library: https://github.com/TinyCircuits/TinyCircuits-GraphicsBuffer-Lib

#### AlanKilian

• Full Member
• Posts: 16
The line follower sketch still does not compile using the latest graphics lib you linked to.

I think I need to delete one or more of the libraried I have installed to get the right font.h.

Here's what I have in my libraries folder:
Code: [Select]
`02/27/2020  09:23 AM    <DIR>          TinyCircuits-GraphicsBuffer-Lib-master02/23/2020  12:05 PM    <DIR>          TinyCircuits-TinierScreen_Lib-master02/24/2020  12:55 PM    <DIR>          TinyCircuits-TinyScreen_Lib-master02/23/2020  12:18 PM    <DIR>          TinyCircuits-TinyShield_Motor_Library-master02/23/2020  12:01 PM    <DIR>          TinyCircuits-Wireling-Lib-master]`
Code: [Select]
`Arduino: 1.8.12 (Windows 10), Board: "RobotZero, Default"C:\Program Files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\Arduino\hardware -hardware C:\Users\kilian\AppData\Local\Arduino15\packages -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -tools C:\Users\kilian\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Users\kilian\Documents\Arduino\libraries -fqbn=TinyCircuits:samd:robotzero:BuildOption=normal -ide-version=10812 -build-path C:\Users\kilian\AppData\Local\Temp\arduino_build_87170 -warnings=none -build-cache C:\Users\kilian\AppData\Local\Temp\arduino_cache_273217 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.CMSIS.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.arduinoOTA.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.bossac.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -verbose C:\Users\kilian\Downloads\LineFollower\LineFollower\LineFollower.inoC:\Program Files\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files\Arduino\hardware -hardware C:\Users\kilian\AppData\Local\Arduino15\packages -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -tools C:\Users\kilian\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Users\kilian\Documents\Arduino\libraries -fqbn=TinyCircuits:samd:robotzero:BuildOption=normal -ide-version=10812 -build-path C:\Users\kilian\AppData\Local\Temp\arduino_build_87170 -warnings=none -build-cache C:\Users\kilian\AppData\Local\Temp\arduino_cache_273217 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.CMSIS.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.arduinoOTA.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.bossac.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -verbose C:\Users\kilian\Downloads\LineFollower\LineFollower\LineFollower.inoUsing board 'robotzero' from platform in folder: C:\Users\kilian\AppData\Local\Arduino15\packages\TinyCircuits\hardware\samd\1.1.0Using core 'arduino' from platform in folder: C:\Users\kilian\AppData\Local\Arduino15\packages\TinyCircuits\hardware\samd\1.1.0Detecting libraries used..."C:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10812 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x03EB -DUSB_PID=0x8009 -DUSBCON "-DUSB_MANUFACTURER=\"TinyCircuits\"" "-DUSB_PRODUCT=\"RobotZero\"" -DUSBCON "-IC:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\TinyCircuits\\hardware\\samd\\1.1.0\\cores\\arduino" "-IC:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\TinyCircuits\\hardware\\samd\\1.1.0\\variants\\robotzero" "C:\\Users\\kilian\\AppData\\Local\\Temp\\arduino_build_87170\\sketch\\LineFollower.ino.cpp" -o nulAlternatives for font.h: [TinyCircuits-GraphicsBuffer-Lib-master@1.1.0 TinyCircuits-TinyScreen_Lib-master@1.1.0 TinyCircuits-TinierScreen_Lib-master@1.1.0]ResolveLibrary(font.h)  -> candidates: [TinyCircuits-GraphicsBuffer-Lib-master@1.1.0 TinyCircuits-TinyScreen_Lib-master@1.1.0 TinyCircuits-TinierScreen_Lib-master@1.1.0]"C:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10812 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x03EB -DUSB_PID=0x8009 -DUSBCON "-DUSB_MANUFACTURER=\"TinyCircuits\"" "-DUSB_PRODUCT=\"RobotZero\"" -DUSBCON "-IC:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\TinyCircuits\\hardware\\samd\\1.1.0\\cores\\arduino" "-IC:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\TinyCircuits\\hardware\\samd\\1.1.0\\variants\\robotzero" "-IC:\\Users\\kilian\\Documents\\Arduino\\libraries\\TinyCircuits-GraphicsBuffer-Lib-master" "C:\\Users\\kilian\\AppData\\Local\\Temp\\arduino_build_87170\\sketch\\LineFollower.ino.cpp" -o nul<many lines removed>Compiling sketch...Using previously compiled file: C:\Users\kilian\AppData\Local\Temp\arduino_build_87170\sketch\Adafruit_TCS34725.cpp.o"C:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10812 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x03EB -DUSB_PID=0x8009 -DUSBCON "-DUSB_MANUFACTURER=\"TinyCircuits\"" "-DUSB_PRODUCT=\"RobotZero\"" -DUSBCON "-IC:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\TinyCircuits\\hardware\\samd\\1.1.0\\cores\\arduino" "-IC:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\TinyCircuits\\hardware\\samd\\1.1.0\\variants\\robotzero" "-IC:\\Users\\kilian\\Documents\\Arduino\\libraries\\TinyCircuits-GraphicsBuffer-Lib-master" "-IC:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\TinyCircuits\\hardware\\samd\\1.1.0\\libraries\\Wire" "-IC:\\Users\\kilian\\Documents\\Arduino\\libraries\\TinyCircuits-Wireling-Lib-master" "-IC:\\Users\\kilian\\Documents\\Arduino\\libraries\\TinyCircuits-TinyShield_Motor_Library-master" "-IC:\\Users\\kilian\\AppData\\Local\\Arduino15\\packages\\TinyCircuits\\hardware\\samd\\1.1.0\\libraries\\SPI" "-IC:\\Users\\kilian\\Documents\\Arduino\\libraries\\TinyCircuits-TinierScreen_Lib-master" "C:\\Users\\kilian\\AppData\\Local\\Temp\\arduino_build_87170\\sketch\\LineFollower.ino.cpp" -o "C:\\Users\\kilian\\AppData\\Local\\Temp\\arduino_build_87170\\sketch\\LineFollower.ino.cpp.o"Using previously compiled file: C:\Users\kilian\AppData\Local\Temp\arduino_build_87170\sketch\VL53L0X.cpp.oIn file included from C:\Users\kilian\Downloads\LineFollower\LineFollower\LineFollower.ino:1:0:C:\Users\kilian\Documents\Arduino\libraries\TinyCircuits-GraphicsBuffer-Lib-master/font.h:754:14: error: 'FONT_CHAR_INFO' does not name a type static const FONT_CHAR_INFO PROGMEM liberationSans_8ptDescriptors[] =              ^~~~~~~~~~~~~~C:\Users\kilian\Documents\Arduino\libraries\TinyCircuits-GraphicsBuffer-Lib-master/font.h:854:14: error: 'FONT_INFO' does not name a type; did you mean 'PORT_IN_IN'? static const FONT_INFO liberationSans_8ptFontInfo =              ^~~~~~~~~              PORT_IN_INC:\Users\kilian\Documents\Arduino\libraries\TinyCircuits-GraphicsBuffer-Lib-master/font.h:1684:14: error: 'FONT_CHAR_INFO' does not name a type static const FONT_CHAR_INFO PROGMEM liberationSans_10ptDescriptors[] =              ^~~~~~~~~~~~~~<Many lines removed>Multiple libraries were found for "font.h" Used: C:\Users\kilian\Documents\Arduino\libraries\TinyCircuits-GraphicsBuffer-Lib-master Not used: C:\Users\kilian\Documents\Arduino\libraries\TinyCircuits-TinyScreen_Lib-master Not used: C:\Users\kilian\Documents\Arduino\libraries\TinyCircuits-TinierScreen_Lib-masterUsing library TinyCircuits-GraphicsBuffer-Lib-master at version 1.1.0 in folder: C:\Users\kilian\Documents\Arduino\libraries\TinyCircuits-GraphicsBuffer-Lib-master Using library Wire at version 1.0 in folder: C:\Users\kilian\AppData\Local\Arduino15\packages\TinyCircuits\hardware\samd\1.1.0\libraries\Wire Using library TinyCircuits-Wireling-Lib-master at version 0.1.0 in folder: C:\Users\kilian\Documents\Arduino\libraries\TinyCircuits-Wireling-Lib-master Using library TinyCircuits-TinyShield_Motor_Library-master in folder: C:\Users\kilian\Documents\Arduino\libraries\TinyCircuits-TinyShield_Motor_Library-master (legacy)Using library SPI at version 1.0 in folder: C:\Users\kilian\AppData\Local\Arduino15\packages\TinyCircuits\hardware\samd\1.1.0\libraries\SPI Using library TinyCircuits-TinierScreen_Lib-master at version 1.1.0 in folder: C:\Users\kilian\Documents\Arduino\libraries\TinyCircuits-TinierScreen_Lib-master exit status 1Error compiling for board RobotZero.`

#### lennevia

• Hero Member
• Posts: 283
Hmm. It's possible you have an older version of the TinierScreen library too?

I have both libraries and they both have a font.h file and I am able to compile and upload the programs to a RobotZero. The only difference I see between us is my master files are just named GraphicsBuffer and TinierScreen in my library directory. You could try re-downloading the newest version of TinierScreen from the GitHub page: https://github.com/TinyCircuits/TinyCircuits-TinierScreen-Lib

Hope that helps!

#### AlanKilian

• Full Member
• Posts: 16
I was FINALLY able to get this to compile by performing the following steps:

Code: [Select]
`Uninstall Arduino softwareDelete Documents/libraries folderDelete Users/.../AppData/Auduino15 folderDownload 1.8.12 Windows installer from:    https://www.arduino.cc/en/Main/SoftwareInstall Arduino software    Set boards manager URL    Install Arduino SAMD boards version 1.8.5    Install TinyCircuits SAMD boards version 1.1.0Download libraries:    https://github.com/TinyCircuits/TinyCircuits-TinierScreen-Lib    https://github.com/TinyCircuits/TinyCircuits-GraphicsBuffer-Lib    https://github.com/TinyCircuits/TinyCircuits-Wireling-Lib/    https://github.com/adafruit/Adafruit_TCS34725/archive/master.zip    https://github.com/TinyCircuits/TinyCircuits-TinyShield_Motor_Library/archive/master.zip Install libraries Follow instructions at:    https://learn.tinycircuits.com/Wirelings/RobotZero_Tutorial/`

SMF spam blocked by CleanTalk