Posts

Showing posts from March, 2015

1Sheeld Libraries for Netduino, revisited.

NOTE:  See the original post here for additional information (including version updates). I have updated the 1Sheeld Libraries and Samples for Netduinos.   Things have changed a bit and those of you creating your own sketches will need to modify your code a bit if you decide to use the latest version (but, frankly, things have gotten a lot simpler and I recommend that you upgrade and take a couple minutes to update your sketches ... for no other reason than the older libraries will no longer be upgraded). I'm going to give you a look at a simple sketch, both before and after the updates, so you can see the differences ... I'll use the SimpleLED sample for this discussion. First a look at the before  code...  Note: I've removed the using statements to simplify things (nothing has changed regardless of whether you use the old libraries or the new libraries with the using statements). Here's the Program.cs  ... it just instantiates an Led class and calls Setup(

1Sheeld on a Raspberry Pi using Alamode (or not)

Image
The previous post was about using the Arduino IDE to build and run sketches for a 1Sheeld shield with the 1Sheeld plugged directly into a pcDuino. This post describes the changes necessary to do similar ... but in this case the 1Sheeld is sitting on an AlaMode (Arduino compatible board) which, in-turn is sitting on a Raspberry Pi.   I have a Raspberry Pi 2 B ... but this should work on any version of the Raspberry Pi that the AlaMode is compatible with.   NOTE: Further investigation shows that these changes are necessary whether you use an Alamode or you simply have an Arduino plugged in to a USB Port. First off, changes necessary are similar to pcDuino ... so, I'll go through each file that needs to be changed.   NOTE : I'm going to start with the base OneSheeld Arduino libraries, the changes made for pcDuino are NOT included. Make sure you have the Arduino IDE and Alamode working on the Raspberry Pi before attempting this.   NOTE: Again, this is required even for Arduin