Changes between Version 1 and Version 2 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/KeypadSound/KeyPadSetUSBEvent


Ignore:
Timestamp:
04/09/18 14:03:35 (7 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/KeypadSound/KeyPadSetUSBEvent

    v1 v2  
    4343
    4444
     45{{{
     46uint8 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
     58void IndStartup(void)
     59{
     60    KeyPadSetUSBEvent(USBKeyRcvd);
     61    // ...
     62
     63}
     64
     65}}}
     66
     67
    4568== See Also ==
    4669