Pages: [1]   Go Down
Author Topic: NESPad - NES Controller Library for Arduino  (Read 791 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 19
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi folks!

Just bought an Arduino and I'm so glad I did! Bought from SparkFun, the inventor's kit, it allowed me to get introduced to Arduino and basic electronics.

I was able to interface my NES controller with Arduino and control a servo with it. I converted the pad reading code into an Arduino library.

Just uncompress it under libraries folder under you arduion installation folder and use the Arduino IDE to compile and run your code.

Check example code and readme.txt file for further instructions on usage.

Hope you like it!

http://www.mediafire.com/?xfp3xv15zpahasi

Cheers,

bootsector
« Last Edit: July 18, 2010, 03:45:28 pm by bootsector » Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice!

but what if i press RIGHT + A... how would i detect it? the code below doesn't work, like i thought it would. any suggestions?

Code:

if (pad.read()==128 && pad.read()==1){
        Serial.print("RIGHT + B\n");
        }



« Last Edit: October 12, 2010, 03:36:28 pm by needle » Logged

Pages: [1]   Go Up
Jump to: