|
-
April 22nd, 2009, 11:22 PM
#1
PIC based USB interface problems ¡ ¡ ¡
Dear friends,
I made a PIC based USB interface, I have connected one pushbutton to the PIC and when I push it, a counter is incremented.
I did a visual C++ interface with a Form and a Label to display this counter.
The thing is, the only way y can see the numbers in the counter are incremented is clicking the mouse as an event handler. Each time I click the mouse, the loop starts again.
Well , I would like to omit clicking the mouse and increment the counter just with the push button from the PIC.
I delete the event click mouse routine and nothing happens.
I have tested a lot of combinations but the visual c++ program , stays still (I dont know where)
waiting for an event, just displaying the number one.
The loop never continue, If I stop and start again my program , Label displays number 0 if pushbutton is open and 1 if it is close, so the programs works ¡ ¡ ¡ ¡.
Please I need Help ¡ ¡
I really appreciate any.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|