Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #45 on: February 01, 2013, 04:25:29 pm » |
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"
|
|
|
|
« Last Edit: February 01, 2013, 04:37:07 pm by Craftee »
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #46 on: February 01, 2013, 05:01:59 pm » |
cant i emulate a keyboard directly from leonardo? so that i dont need processing?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #47 on: February 01, 2013, 05:11:31 pm » |
Absolutely you can do that.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #48 on: February 01, 2013, 05:15:58 pm » |
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 if (input == 127) emulateKey(A) or something like that.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #49 on: February 01, 2013, 05:33:05 pm » |
idk, a little directional help would help
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #50 on: February 01, 2013, 05:36:04 pm » |
Take a look at this post: http://arduino.cc/forum/index.php?topic=112965.0I press a button on a keypad, and it "types" stuff into a forum message.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 137
Posts: 19060
I don't think you connected the grounds, Dave.
|
 |
« Reply #51 on: February 01, 2013, 05:36:27 pm » |
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.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #52 on: February 01, 2013, 05:49:48 pm » |
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?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #53 on: February 01, 2013, 06:21:32 pm » |
i read your post, but im still confused as to how to let the arduino know that button "a" was pressed? im so confused
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #54 on: February 01, 2013, 09:19:40 pm » |
bump
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #55 on: February 01, 2013, 09:23:42 pm » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #56 on: February 01, 2013, 09:38:00 pm » |
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!
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 67
|
 |
« Reply #57 on: February 01, 2013, 09:44:10 pm » |
im just a kid that needs help, gosh!
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Tesla Member
Karma: 89
Posts: 6377
-
|
 |
« Reply #58 on: February 01, 2013, 09:48:46 pm » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #59 on: February 01, 2013, 09:50:51 pm » |
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"?
|
|
|
|
|
Logged
|
|
|
|
|
|