Teensy 2.0 Detect NUMLOCK Status

Status
Not open for further replies.

baechooboi

New member
Hi - It's a super newb question, but hours of rummaging through Google isn't doing me any good, so posting the question here as a last resort...
If there's already a thread/link that can resolve this problem, I apologize and the link will be greatly appreciated!!

Objective: I am trying to build a macro keypad that sends different keystrokes depending on the NUMLOCK status of the main keyboard.

Software/Ver.: I have installed Arduino 1.8.3 and Teensyduino 1.37, have set the port to USB keyboard/mouse/joystick option in Arduino.

Attempted: Using keyboard_leds() to pick up numlock led status of the mainboard.

Problem: "'keyboard_leds' was not declared in this scope" error.

Sending keystrokes/keyinput is the easy part (I've already tried it and works fine), but I just cannot figure out the NUMLOCK status detection piece.
Honestly, I am not sure if I am even on the right track, so if this is grossly misdirected, please help. Thanks!
 
Status
Not open for further replies.
Back
Top