2

I am very new to the digispark and I am only partly familiar with the DigisparkKeyboard\digikeyboard.h library.

I am able to send keystrokes to the PC, but I also want to check whether CAPSLOCK is active on the host machine and also be notified when it's pressed.

Semnodime
  • 1,872
  • 1
  • 15
  • 24
Pranoy Sarkar
  • 1,965
  • 14
  • 31

2 Answers2

2

It is not directly possible using existing Arduino Libraries or Digispark Libraries.

But, here is a crude solution written in C. If you want to see actual implementation then refer this

Abhijeet Kasurde
  • 3,937
  • 1
  • 24
  • 33
0

The DigiKeyboard.h library is write only (from Digispark to PC).

No way to read keyboard status (CAPSLOCK , NUMLOCK) back.

(BTW: Which status do you want to read: the digispark or another 'real' keyboard, on a different USB or PS/2 port ?)

datafiddler
  • 1,755
  • 3
  • 17
  • 30