0% found this document useful (0 votes)
71 views

Key Codes Arduino Sketch

The code uses the Keyboard library to print out the decimal and character codes for all values from 0 to 255, with each value on its own line separated by tabs and newlines. It runs through printing the codes once and then turns the keyboard printing off.

Uploaded by

Dado Gaudi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views

Key Codes Arduino Sketch

The code uses the Keyboard library to print out the decimal and character codes for all values from 0 to 255, with each value on its own line separated by tabs and newlines. It runs through printing the codes once and then turns the keyboard printing off.

Uploaded by

Dado Gaudi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

C:\Users\dntg\Documents\Arduino\keycodes\keycodes.

ino mercoledì 3 gennaio 2018 19:32


#include <Keyboard.h>
boolean KeybOn = true;

void setup() {
Keyboard.begin();
}

void loop() {
if(KeybOn){
for(int i=0;i<=255;i++){
Keyboard.print(i);
Keyboard.print(char(9));
Keyboard.print(char(i));
Keyboard.print(char(10));
Keyboard.println(char(13));
}
KeybOn=false;
}
}

-1-

You might also like