Add KeyboardHost HID Host Class driver demo to the library.
This commit is contained in:
parent
aa640330a1
commit
6c5c9212d8
8 changed files with 2590 additions and 4 deletions
|
@ -125,19 +125,16 @@ int main(void)
|
|||
MouseReport.Y,
|
||||
MouseReport.Button);
|
||||
|
||||
/* Alter status LEDs according to mouse X movement */
|
||||
if (MouseReport.X > 0)
|
||||
LEDMask |= LEDS_LED1;
|
||||
else if (MouseReport.X < 0)
|
||||
LEDMask |= LEDS_LED2;
|
||||
|
||||
/* Alter status LEDs according to mouse Y movement */
|
||||
if (MouseReport.Y > 0)
|
||||
LEDMask |= LEDS_LED3;
|
||||
else if (MouseReport.Y < 0)
|
||||
LEDMask |= LEDS_LED4;
|
||||
|
||||
/* Alter status LEDs according to mouse button position */
|
||||
if (MouseReport.Button)
|
||||
LEDMask = LEDS_ALL_LEDS;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue