unable to initialize Keyboard/mouse combo object
Siri
Posts: 220
I was trying to use your Keyboard/mouse object.It says to:
“Applications should call config.GetPin(DeviceType) to get the pin for the device.”
I tried placing the call like this:
I also tried doing this "config.GetPin(#VGA1) - not succesful
and I did not get any display on the VGA Monitor.(I have the monitor hooked up to "Propeller Proto Board and wired per instructions and it does work when I use the VGA object to display text.
What I am I doing wrong.
Regards,
Siri
“Applications should call config.GetPin(DeviceType) to get the pin for the device.”
I tried placing the call like this:
Pub Start | char, mx, my config.Init(@pininfo,0) 'initialize config setup config.GetPin(CONFIG#VGA1) kbm.start(config.GetPin(CONFIG#MOUSE1_DATA),config.GetPin(CONFIG#MOUSE1_CLK), { } config.GetPin(CONFIG#KEYBOARD1_DATA),config.GetPin(CONFIG#KEYBOARD1_CLK))
I also tried doing this "config.GetPin(#VGA1) - not succesful
Pub Start | char, mx, my config.Init(@pininfo) 'initialize config setup kbm.start(config.GetPin(CONFIG#MOUSE1_DATA),config.GetPin(CONFIG#MOUSE1_CLK), { } config.GetPin(CONFIG#KEYBOARD1_DATA),config.GetPin(CONFIG#KEYBOARD1_CLK)) ,config.GetPin(CONFIG#VGA1)
and I did not get any display on the VGA Monitor.(I have the monitor hooked up to "Propeller Proto Board and wired per instructions and it does work when I use the VGA object to display text.
What I am I doing wrong.
Regards,
Siri
Comments
some code that calls a "pindefs" file for it's I/O information.
something like this:
propeller.wikispaces.com/PinDefs.spin
If you place the actual number of the connected item does it work?
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with a Propeller Protoboard?
Check out: Introduction to the Proboard & Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card connected? - PropDOS
You are wright it is looking for "PinDefs"They are in a another object which this calls.
Here is the initialization part of the KBM driver Test - I was trying out the Test program which was included in the kbm oject found in the OBJECT section.
Thanks,
Regards,
Siri
I'm guessing that config.GetPin(CONFIG#VGA1) should be something like start.vga(config#VGA1)
and kbm.start(config#MOUSE1_DATA,config#MOUSE1_CLK)
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with a Propeller Protoboard?
Check out: Introduction to the Proboard & Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card connected? - PropDOS
Post Edited (Oldbitcollector) : 10/17/2008 8:36:43 PM GMT
I got it working.
Regards,
Siri