11-03-2018, 17:30
Witam mam problem z kodem w Micro Pro a mianowicie nie mogę go wgrać ponieważ pokazuje się błąd : Nie znalezione 'Keyboard'. Czy twój szkic zawiera linię '#include <Keyboard.h>' ? Prosił bym o pomoc
Ocena wątku:
Problem z kodem Micro Pro
|
#include "Keyboard.h"
void setup() {
// open the serial port:
Serial.begin(9600);
// initialize control over the keyboard:
Keyboard.begin();
}
void loop() {
// check for incoming serial data:
if (Serial.available() > 0) {
// read incoming serial data:
char inChar = Serial.read();
// Type the next ASCII value from what you received:
Keyboard.write(inChar + 1);
}
}