65Views1Replies

Author Options:

Loop Time Ardunio Answered

i need your help with a very very short code ?

i have this code

#include "Keyboard.h"
#include "HID.h"

void setup() {

Keyboard.begin(); }

void loop() {

delay (1000); Keyboard.write(KEY_F1);

delay (3000); Keyboard.write(KEY_F2);

}

this code works fine for me... but the problem is


this code give me only one "F1" and one "F2" in 4 seconds.

i need "F1" appears every second (1000ms) and "F2" every 3 seconds (3000ms) in a infinyte loop

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
iceng
iceng

3 years ago

But this is a topic ?