Go Down

Topic: Arduino Nes controller, Please Help! (Read 8966 times) previous topic - next topic

Craftee

#45
Feb 01, 2013, 10:25 pm Last Edit: Feb 01, 2013, 10:37 pm by Craftee Reason: 1
edit, in serial monitoring, i get different numbers when i press a button, except when i press the "a" button, the number doesnt change. it spams "127"

Craftee

cant i emulate a keyboard directly from leonardo? so that i dont need processing?

Nick Gammon

Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Craftee


Absolutely you can do that.


just one problem, i dont know how to make the code get the information that the controller is sending.
like i was thinking

Code: [Select]
if (input == 127)
  emulateKey(A)



or something like that.

Craftee

idk, a little directional help would help

Nick Gammon

Take a look at this post:

http://arduino.cc/forum/index.php?topic=112965.0

I press a button on a keypad, and it "types" stuff into a forum message.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

AWOL

Quote
a little directional help would help

Over there!

Seriously, what is that supposed to mean?

What is the Arduino code doing?
You have to describe it because we can't see it.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Craftee


Quote
a little directional help would help

Over there!

Seriously, what is that supposed to mean?

What is the Arduino code doing?
You have to describe it because we can't see it.


directional help to get started in emulating a keyboard? because i dont know how to integrate it into my code?

Craftee


Take a look at this post:

http://arduino.cc/forum/index.php?topic=112965.0

I press a button on a keypad, and it "types" stuff into a forum message.


i read your post, but im still confused as to how to let the arduino know that button "a" was pressed?


im so confused


Nick Gammon

You are going to have to stop asking questions and start writing some code.

Do you have a way if knowing if button "a" is pressed? I guess so, because you had numbers flashing by.

Don't keep asking "how do I do it"?  Make an attempt, and post the code.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Craftee


You are going to have to stop asking questions and start writing some code.

Do you have a way if knowing if button "a" is pressed? I guess so, because you had numbers flashing by.

Don't keep asking "how do I do it"?  Make an attempt, and post the code.


ive been attempting for over 20+ hours now. what more do you want from me? im just a kid!

Craftee

im just a kid that needs help, gosh!

PeterH


im just a kid that needs help, gosh!


If you think you are capable of solving this problem already with a little help, then you ought to be at least part way there on your own. Show us where you've got so far and which part you need help with, and no doubt there will be plenty of people willing to steer you round the problem.

If you simply don't know where to start, then put this project down and start with something simpler. It's best not to try to boil the ocean - learn things one step at a time.

I only provide help via the forum - please do not contact me for private consultancy.

Nick Gammon


i feel stupid, i accidently switched the yellow and brown, its working now ...


OK. What's working? Are you getting numbers in the serial monitor? What number do you see if you press button "a"?

Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up