Changes between Version 1 and Version 2 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/KeypadSound/KeyPadSetUSBEvent
- Timestamp:
- 04/09/18 14:03:35 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/KeypadSound/KeyPadSetUSBEvent
v1 v2 43 43 44 44 45 {{{ 46 uint8 USBKeyRcvd(uint8 key) 47 { 48 if((key >= '0' && key <= '9') || key == '\r') // Only allow numbers and carriage return 49 { 50 return key; 51 } 52 else 53 { 54 return 0; 55 } 56 } 57 58 void IndStartup(void) 59 { 60 KeyPadSetUSBEvent(USBKeyRcvd); 61 // ... 62 63 } 64 65 }}} 66 67 45 68 == See Also == 46 69