![]() ![]() Read and follow the Arduino API Style Guide for writing libraries Please consider them the next time you write a library. This is a compiled list of lessons we've learned along the way that can make a good Arduino library great. This is because DUE has a fast clock and it runs super fast! If you look in your pixy.SparkFun has written a large number of libraries for Arduino over many years. If you take your DUE and try to talk to some other device like a IMU or a gyroscope using SPI library, you will run into an issue. So arduino DUE and the SPI library (at least the one that im using) are not quite compatible as is. See if you can talk to it via I2C (make sure to get your wiring right!)Īlso, for debugging purposes, I would reccomend you get pixy talking to arduino UNO first via ISP before you touch DUE. However, since you were able to get Pixy working with UART, this suggest that camera is fine. Have you tried talking to say…arduino UNO via SPI? If you cant talk to UNO, then you either have a wire problem, or something wrong with Pixy itself. Maybe one of the lines has a poor connection. Also, you may have a crappy ribbon cable, those things are known to have poor transmission. I will take a picture of how I would connect my Pixy to DUE via SPI and post it here as soon as I get to my lab. Theoretically speaking, Pixy hello_world example code should work without any problems if you make your connections right. (so i guess im running the same arduino IDE version as you are) My version of SPI library is whatever version included with Arduino IDE v1.5.7 distribution. My previous version of arduino IDE did not have arduino DUE listed in the board menu. To get my DUE up and running, I had to redownload my arduino IDE and get the latest one. I was able to get pixy to talk to arduino UNO and MEGA via SPI before using some old version of SPI library. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |