This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:v2:hooking_up_pixy_to_a_microcontroller_-28like_an_arduino-29 [2018/09/26 16:05] pixycam |
wiki:v2:hooking_up_pixy_to_a_microcontroller_-28like_an_arduino-29 [2019/01/28 23:35] jfrench [Updating Pixy Library for Arduino] |
||
---|---|---|---|
Line 21: | Line 21: | ||
Next, load the "ccc\_hello\_world" example by selecting it in **File➜Examples➜Pixy2**. Upload it and bring up the **Serial Monitor** which can be found in **Tools➜Serial Monitor**. Also be sure to set the Serial Monitor baud rate to 115200 baud, which is selectable at the bottom of the Serial Monitor window. | Next, load the "ccc\_hello\_world" example by selecting it in **File➜Examples➜Pixy2**. Upload it and bring up the **Serial Monitor** which can be found in **Tools➜Serial Monitor**. Also be sure to set the Serial Monitor baud rate to 115200 baud, which is selectable at the bottom of the Serial Monitor window. | ||
- | {{wiki:v2:image_520.png}} | + | |
+ | {{wiki:v2:image_521.png}} | ||
You should see messages printed in the Serial Monitor window that look similar to this: | You should see messages printed in the Serial Monitor window that look similar to this: | ||
Line 78: | Line 80: | ||
Before installing a new version of the Arduino Library, it's recommended that you delete the existing library. To do this, you can go into your C:\Users\<yourname>\Documents\Arduino\libraries (or similar directory, <yourname>/Documents/Arduino in OSX and Linux) and remove the Pixy2 directory. Then re-run the Arduino IDE. | Before installing a new version of the Arduino Library, it's recommended that you delete the existing library. To do this, you can go into your C:\Users\<yourname>\Documents\Arduino\libraries (or similar directory, <yourname>/Documents/Arduino in OSX and Linux) and remove the Pixy2 directory. Then re-run the Arduino IDE. | ||
+ | |||
+ | ==== Troubleshooting ==== | ||
+ | If you're using Arduino Due or Mega, you may get an error like this when compiling: | ||
+ | ''libraries\Pixy2\ZumoBuzzer.cpp:90:5: error: expected constructor, destructor, or type conversion before '(' token'' | ||
+ | In that case, just go into your Pixy library and delete the following 4 files: | ||
+ | {{:wiki:v2:todelete.png}} | ||
+ | It should then compile! |