0

Help with Pixypet
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Help with Pixypet

by shaunboehm on Fri Mar 03, 2017 4:47 pm

Hi; I bought the Pixypet kit for my students to build and enter into a technology fair. Currently, we're stuck with the coding. We are using Arduino 1.8.1. The libraries have been downloaded. Originally, I was getting "platform.h not included/found," so I got an older Arduino version and put the platform.h into my new program. Now, I am getting this (quite lengthy) error. I'm having a hard time understanding what the issue is.

Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.1 (Windows 7), Board: "Seeeduino Lite"

Warning: Board arduino:avr:mega2560 doesn't define a 'build.board' preference. Auto-set to: AVR_MEGA2560
Warning: Board arduino:avr:pro doesn't define a 'build.board' preference. Auto-set to: AVR_PRO
Warning: Board arduino:avr:lilypad doesn't define a 'build.board' preference. Auto-set to: AVR_LILYPAD
Warning: Board arduino:avr:atmega168 doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA168
Warning: Board arduino:avr:atmega8 doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA8
Warning: Board arduino:avr:leonardo doesn't define a 'build.board' preference. Auto-set to: AVR_LEONARDO
Warning: Board arduino:avr:mini328 doesn't define a 'build.board' preference. Auto-set to: AVR_MINI328
Warning: Board arduino:avr:bt328 doesn't define a 'build.board' preference. Auto-set to: AVR_BT328
Warning: Board arduino:avr:lilypad328 doesn't define a 'build.board' preference. Auto-set to: AVR_LILYPAD328
Warning: Board arduino:avr:micro doesn't define a 'build.board' preference. Auto-set to: AVR_MICRO
Warning: Board arduino:avr:uno doesn't define a 'build.board' preference. Auto-set to: AVR_UNO
Warning: Board arduino:avr:Xadow doesn't define a 'build.board' preference. Auto-set to: AVR_XADOW
Warning: Board arduino:avr:mega doesn't define a 'build.board' preference. Auto-set to: AVR_MEGA
Warning: Board arduino:avr:atmega328 doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA328
Warning: Board arduino:avr:diecimila doesn't define a 'build.board' preference. Auto-set to: AVR_DIECIMILA
Warning: Board arduino:avr:fio doesn't define a 'build.board' preference. Auto-set to: AVR_FIO
Warning: Board arduino:avr:pro5v doesn't define a 'build.board' preference. Auto-set to: AVR_PRO5V
Warning: Board arduino:avr:ethernet doesn't define a 'build.board' preference. Auto-set to: AVR_ETHERNET
Warning: Board arduino:avr:pro328 doesn't define a 'build.board' preference. Auto-set to: AVR_PRO328
Warning: Board arduino:avr:nano328 doesn't define a 'build.board' preference. Auto-set to: AVR_NANO328
Warning: Board arduino:avr:LilyPadUSB doesn't define a 'build.board' preference. Auto-set to: AVR_LILYPADUSB
Warning: Board arduino:avr:robotMotor doesn't define a 'build.board' preference. Auto-set to: AVR_ROBOTMOTOR
Warning: Board arduino:avr:pro5v328 doesn't define a 'build.board' preference. Auto-set to: AVR_PRO5V328
Warning: Board arduino:avr:Node doesn't define a 'build.board' preference. Auto-set to: AVR_NODE
Warning: Board arduino:avr:Lite doesn't define a 'build.board' preference. Auto-set to: AVR_LITE
Warning: Board arduino:avr:mini doesn't define a 'build.board' preference. Auto-set to: AVR_MINI
Warning: Board arduino:avr:Clio doesn't define a 'build.board' preference. Auto-set to: AVR_CLIO
Warning: Board arduino:avr:esplora doesn't define a 'build.board' preference. Auto-set to: AVR_ESPLORA
Warning: Board arduino:avr:bt doesn't define a 'build.board' preference. Auto-set to: AVR_BT
Warning: Board arduino:avr:nano doesn't define a 'build.board' preference. Auto-set to: AVR_NANO
Warning: Board arduino:avr:robotControl doesn't define a 'build.board' preference. Auto-set to: AVR_ROBOTCONTROL
Build options changed, rebuilding all
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:31:0: warning: "EP_TYPE_CONTROL" redefined

 #define EP_TYPE_CONTROL    0x00

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h:233:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Platform.h:15,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBAPI.h:50:0: note: this is the location of the previous definition

 #define EP_TYPE_CONTROL    (0x00)

 ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:32:0: warning: "EP_TYPE_BULK_IN" redefined

 #define EP_TYPE_BULK_IN    0x81

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h:233:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Platform.h:15,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBAPI.h:51:0: note: this is the location of the previous definition

 #define EP_TYPE_BULK_IN    ((1<<EPTYPE1) | (1<<EPDIR))

 ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:33:0: warning: "EP_TYPE_BULK_OUT" redefined

 #define EP_TYPE_BULK_OUT   0x80

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h:233:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Platform.h:15,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBAPI.h:52:0: note: this is the location of the previous definition

 #define EP_TYPE_BULK_OUT   (1<<EPTYPE1)

 ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:34:0: warning: "EP_TYPE_INTERRUPT_IN" redefined

 #define EP_TYPE_INTERRUPT_IN  0xC1

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h:233:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Platform.h:15,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBAPI.h:53:0: note: this is the location of the previous definition

 #define EP_TYPE_INTERRUPT_IN  ((1<<EPTYPE1) | (1<<EPTYPE0) | (1<<EPDIR))

 ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:35:0: warning: "EP_TYPE_INTERRUPT_OUT" redefined

 #define EP_TYPE_INTERRUPT_OUT  0xC0

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h:233:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Platform.h:15,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBAPI.h:54:0: note: this is the location of the previous definition

 #define EP_TYPE_INTERRUPT_OUT  ((1<<EPTYPE1) | (1<<EPTYPE0))

 ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:36:0: warning: "EP_TYPE_ISOCHRONOUS_IN" redefined

 #define EP_TYPE_ISOCHRONOUS_IN  0x41

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h:233:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Platform.h:15,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBAPI.h:55:0: note: this is the location of the previous definition

 #define EP_TYPE_ISOCHRONOUS_IN  ((1<<EPTYPE0) | (1<<EPDIR))

 ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:37:0: warning: "EP_TYPE_ISOCHRONOUS_OUT" redefined

 #define EP_TYPE_ISOCHRONOUS_OUT  0x40

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h:233:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Platform.h:15,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBAPI.h:56:0: note: this is the location of the previous definition

 #define EP_TYPE_ISOCHRONOUS_OUT  (1<<EPTYPE0)

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBAPI.h:44:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h:233,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Platform.h:15,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:102:29: error: 'USB_VID' was not declared in this scope

  D_DEVICE(0x00,0x00,0x00,64,USB_VID,USB_PID,0x100,IMANUFACTURER,IPRODUCT,0,1);

                             ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.h:267:61: note: in definition of macro 'D_DEVICE'

  { 18, 1, USB_VERSION, _class,_subClass,_proto,_packetSize0,_vid,_pid,_version,_im,_ip,_is,_configs }

                                                             ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:102:37: error: 'USB_PID' was not declared in this scope

  D_DEVICE(0x00,0x00,0x00,64,USB_VID,USB_PID,0x100,IMANUFACTURER,IPRODUCT,0,1);

                                     ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.h:267:66: note: in definition of macro 'D_DEVICE'

  { 18, 1, USB_VERSION, _class,_subClass,_proto,_packetSize0,_vid,_pid,_version,_im,_ip,_is,_configs }

                                                                  ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:105:37: error: 'USB_VID' was not declared in this scope

  D_DEVICE(DEVICE_CLASS,0x00,0x00,64,USB_VID,USB_PID,0x100,IMANUFACTURER,IPRODUCT,0,1);

                                     ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.h:267:61: note: in definition of macro 'D_DEVICE'

  { 18, 1, USB_VERSION, _class,_subClass,_proto,_packetSize0,_vid,_pid,_version,_im,_ip,_is,_configs }

                                                             ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:105:45: error: 'USB_PID' was not declared in this scope

  D_DEVICE(DEVICE_CLASS,0x00,0x00,64,USB_VID,USB_PID,0x100,IMANUFACTURER,IPRODUCT,0,1);

                                             ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.h:267:66: note: in definition of macro 'D_DEVICE'

  { 18, 1, USB_VERSION, _class,_subClass,_proto,_packetSize0,_vid,_pid,_version,_im,_ip,_is,_configs }

                                                                  ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:383:28: error: 'Setup' was not declared in this scope

 bool ClassInterfaceRequest(Setup& setup)

                            ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:384:1: error: expected ',' or ';' before '{' token

 {

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBAPI.h:44:0,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h:233,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Platform.h:15,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:25:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp: In function 'bool SendConfiguration(int)':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.h:270:118: warning: narrowing conversion of 'interfaces' from 'int' to 'u8 {aka unsigned char}' inside { } [-Wnarrowing]

  { 9, 2, _totalLength,_interfaces, 1, 0, USB_CONFIG_BUS_POWERED | USB_CONFIG_REMOTE_WAKEUP, USB_CONFIG_POWER_MA(500) }

                                                                                                                      ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:474:28: note: in expansion of macro 'D_CONFIG'

  ConfigDescriptor config = D_CONFIG(_cmark + sizeof(ConfigDescriptor),interfaces);

                            ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp: At global scope:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:486:21: error: 'Setup' was not declared in this scope

 bool SendDescriptor(Setup& setup)

                     ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp:487:1: error: expected ',' or ';' before '{' token

 {

 ^

exit status 1
Error compiling for board Seeeduino Lite.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

shaunboehm
 
Posts: 1
Joined: Fri Mar 03, 2017 4:42 pm

Re: Help with Pixypet

by franklin97355 on Fri Mar 03, 2017 9:55 pm

It looks like you Arduino files are corrupt. I would recommend you uninstall and remove them along with the Arduino15 directory and download a new copy.

franklin97355
 
Posts: 19207
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Help with Pixypet

by librarymaker on Thu Oct 18, 2018 1:24 pm

Hi Shaun, did you ever resolve this problem? I'm getting the exact same error, and you're the only thing that matches my issue that comes up on Google!

librarymaker
 
Posts: 1
Joined: Thu Oct 18, 2018 1:23 pm

Please be positive and constructive with your questions and comments.