Part 2: Nintendo DS Touchscreen Color Picker

So this took me longer to put together than expected as various events in my life have kept me very busy, in a good way. I also had trouble with the tool Fritzing. It is the tool I used in Part 1 of this tutorial to create the image of the breadboard and Arduino laid out nicely. I had trouble building my own Nintendo DS Touchscreen Connector and the Touchscreen itself. There were Spark Fun equals but they were not exactly the same and I didn’t want to confuse anybody by accident.

Due to this tutorial taking too long I’m just going to show a few images of the device along with the code. I apologize the lack of a proper tutorial.

IMG_4308IMG_4309 IMG_4310 IMG_4311







Part 1: Nintendo DS Touchscreen Color Picker

I figured I’d write-up a tutorial on a little idea I had. I wanted to see if I could make a touchscreen become a color picker. Simple idea and I know it is possible. It was a good introduction into various aspects of building prototypes with an Arduino board. This tutorial is going to be broken up into two parts. First we’ll talk about hooking up an RGB LED to an Arduino board. I’ll be using an Arduino UNO but I’m sure most of the Arduino boards will be very similar. One last thing, keep in mind I am new to embedded development and hardware in general. So these tutorials may not be as descriptive or detailed as one would expect.
Continue reading “Part 1: Nintendo DS Touchscreen Color Picker”

Objective-C NSString + Contains

Within C# we have access to a String class from .NET which is full of helpful string manipulation methods. Many other languages have their own forms of a String library and Objective-C is right there with those languages with its NSString class. While NSString is very useful I do find it odd from time to time the naming or usage of certain methods to accomplish tasks. For example, within any .NET based language, such as C#, I have access to a handy method called String.Contains. It’ll return a true or false depending if the the string you pass as a parameter is within, or contained, within the main string object you call this method from.

Continue reading “Objective-C NSString + Contains”

Fix Duplicate Open With Application Entries In OS X

For one reason or the other which I didn’t bother taking the time to research some some applications get duplicated within OS X’s Open With menu.┬áDoing some searching around online I found the following command that helps resolve this issue. Just open up the terminal and type in (or copy paste this):

Continue reading “Fix Duplicate Open With Application Entries In OS X”

Objective-C Tip: Switch Statements

During one of my sessions of working on the iPhone game. I noticed something very strange within Objective-C.

Continue reading “Objective-C Tip: Switch Statements”