<< return to Pixycam.com

'Pixy does not name a type'

So I’ve downloaded the Pixy arduino & placed it in the Arduino examples folders.

I opened the hello world arduino file and tried to run it. But t shows this error…

‘Pixy does not name a type’

hello_world:18: error: ‘Pixy’ does not name a type
hello_world.cpp: In function ‘void loop()’:
hello_world:34: error: ‘pixy’ was not declared in this scope

Hi there,

So, this looks like an arduino IDE error.

Did you import the library? ie:
Bring up the Arduino IDE and import the Pixy library by selecting Sketch➜Import Library in the Arduino IDE, and then browsing to the Pixy.zip file that you just downloaded. It should install without error. And then you can build the hello_world example.