Hi, I’m trying to connect my pixy to my arduino uno, but it seems whenever I use pixy.init(), I can no longer control my arduino. For example, the following code is suppose to simply ‘beep’ my LED.
@#include <SPI.h>
#include <Pixy.h>
Pixy pixy;
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
pinMode(led, OUTPUT);
pixy.init();
}
// the loop routine runs over and over again forever:
void loop() {
beeper();
}
void beeper(){
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000);
}@
This code does not work when I upload it, but if I take out only the pixy.init(), it will work. Can someone possibly help me out as to why this is happening?