When I do for instance, Keyboard.write('Shift+n'); it returns only n and does not press shift.
I am struggling to find a reference for these combinations. Can anyone please help?
With this code I just get 'ntntnt' over and over and my computer is highlighting everything. Is there any examples of how these modifiers might be used in relation to the combinations I need? There are no code examples in this manual?
Thank you for your quick answers. Sorry I miss typed and meant (10) not 100 ;
The problem is the code:
Keyboard.press('KEY_SHIFT');
Keyboard.press('n');
is still returning 'NT' and not (Shift +N). I don't understand Where is the 'T' coming from? Sorry if it is a stupid question. Thanks.
Thanks. Here is my full code to test the 'shift +n'. Not sure if it is the best way to do it. I still need to figure out the other combinations posted above.
#include <Keyboard.h>
long count;
void setup(){
Serial.begin(9600);
Keyboard.begin(); // Initialise the library.
There is no such thing as KEY_SHIFT and it also should not have single ticks around it. Try
Keyboard.press(KEY_LEFT_SHIFT);
I further suggest that you use a safety mechanism so your PC doesn't get spammed. I use what I call a safetyPin that must be tied to GND for the code to be able to send keys.