Posts

Showing posts from February, 2015

Using the Arduino IDE to run 1Sheeld sketches on a pcDuino

In a previous post, I provided a modified library and samples for using the 1Sheeld on a pcDuino (2 or 3) using the pcDuino Arduino-ish libraries (c_environment).   If, however, you want to compile sketches for the 1Sheeld on the pcDunio using the Arduino IDE, there are some additional things you need to do.   I've also taken pains to make sure that the changes I talk about here are integrated into the Arduino Libraries in such a way that you can still use them if you are connecting an Arduino to the pcDuino and using the 1Sheeld on the Arduino ... so, the exact same libraries can be used for Ardunio/1Sheeld sketches or pcDuino/1Sheeld sketches. <<< TERMIO ISSUES >>> You may want to add this somewhere to your start-up configuration ... or create an easily accessible script somewhere. stty -onlcr -icrnl -F /dev/ttyS1 If you don't, using some of the Shields won't work as-expected ... and if you ever need to you can always do this to

All post's source code downloads now point to Github

As of 02-16-2015 all source code (libraries, sample, sketches, etc) download links in the Arduino CodeDog blog posts that I've created have been changed and now point to public Github repositories. All future source code downloads will point to Github repositories as well.

1Sheeld's GamePad and a Gameduino and you are Good-To-Go

Image
After converting the Arduino Libraries to C# for Netduino I needed a little play time.  So, I decided to dig out my Gameduino and see what I could come up with.  It didn't take long to think "hmmm, 1Sheeld's GamePad may just work for the Frogger demo that the Gameduino folks have provided" ... and a small change to the Frogger Sketch (adding 1Sheeld Gamepad support) and voila, Frogger on an Arduino with 1Sheeld GamePad support...very, very cool! Here's the entire Controller class using the OneSheeld library GamePad support, #include the OneSheeld.h at the top of the Frogger sketch and you will be crossing the street with a frog in tow in no time. class Controller { public: void begin() { OneSheeld.begin(); prev = 0; } byte read() { byte r = 0; if (GamePad.isDownPressed()) r |= CONTROL_DOWN; if (GamePad.isUpPressed()) r |= CONTROL_UP; if (GamePad.isLeftPressed()) r |= CONTROL_LEF