CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 4 matches
CCS Forum Index
Author Message
  Topic: USB keyboard with 18f14k50
kurtzweber

Replies: 9
Views: 29212

PostForum: General CCS C Discussion   Posted: Mon Oct 22, 2012 11:32 am   Subject: USB keyboard with 18f14k50
Ok solved Wink

you need a delay after each send... now I'm using 100ms but from the examples provided it seems you can use 10ms:

// release key
delay_ms(100);
mem ...
  Topic: USB keyboard with 18f14k50
kurtzweber

Replies: 9
Views: 29212

PostForum: General CCS C Discussion   Posted: Mon Oct 22, 2012 9:36 am   Subject: USB keyboard with 18f14k50
Hello!

I added a small delay (100ms) between the two "usb_put_packet" and now it sends the key, but just the first one ('H'), both using printf() or calling the sub manually... very stran ...
  Topic: USB keyboard with 18f14k50
kurtzweber

Replies: 9
Views: 29212

PostForum: General CCS C Discussion   Posted: Mon Oct 22, 2012 8:32 am   Subject: USB keyboard with 18f14k50
Thanks for your reply!

To release the key, I thought to send a message with all 0x00 but nothing changes:

// tx_msg

void send_char(char c) {

unsigned int8 tx_msg[7& ...
  Topic: USB keyboard with 18f14k50
kurtzweber

Replies: 9
Views: 29212

PostForum: General CCS C Discussion   Posted: Mon Oct 22, 2012 6:24 am   Subject: USB keyboard with 18f14k50
Hello!

I'm working on a project with a 18f14k50 PIC. I need to implement a keyboard HID device and I'm working with the provided examples.

My first attempt is to simply send "Hello" st ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group