-
Notifications
You must be signed in to change notification settings - Fork 64
Description
Serial Abnormal output
⸮a'B⸮R+⸮R#⸮⸮�⸮⸮⸮ԅu⸮⸮b!⸮⸮(⸮⸮� 09:25:12.160 -> ⸮D�(⸮⸮⸮⸮⸮⸮ܦ⸮⸮⸮⸮⸮⸮H#9⸮⸮⸮!⸮⸮D�˗⸮b!⸮⸮)⸮(⸮⸮⸮J(�D⸮⸮⸮⸮�)⸮)⸮⸮⸮J(�D⸮⸮⸮H⸮⸮⸮19⸮⸮!⸮⸮⸮⸮Q)⸮(⸮⸮⸮J(�D⸮S⸮R�)⸮�⸮⸮@Hʨ0�z⸮⸮⸮⸮!⸮⸮⸮!�⸮⸮H⸮⸮ԅ9⸮⸮⸮!⸮H⸮⸮⸮܆-⸮⸮@a⸮9⸮H�⸮H!⸮⸮T9⸮⸮⸮!⸮⸮⸮⸮⸮!⸮⸮D�9;⸮⸮⸮⸮H!⸮⸮U9⸮⸮⸮!⸮�9⸮⸮܆⸮⸮⸮d⸮⸮H#9⸮⸮f!⸮⸮D�˗⸮f!H⸮⸮⸮!⸮⸮⸮!�⸮⸮!?3⸮⸮x⸮⸮@⸮1⸮H�⸮⸮�)⸮)⸮⸮⸮J(⸮D⸮⸮⸮?⸮܆⸮⸮⸮@⸮1⸮H�⸮!⸮⸮L⸮⸮&!⸮ ⸮/⸮v!⸮⸮D⸮9;⸮⸮⸮⸮⸮⸮V!⸮⸮D�˗⸮f!⸮�)⸮�⸮⸮@Hʪ0��⸮V�)3�⸮⸮@H6⸮0⸮⸮�?�)⸮�⸮⸮@H:⸮0�⸮⸮(⸮⸮�
09:25:42.580 -> ⸮D�×⸮⸮⸮
As long as it is started, it will output, even if the keyboard is not connected
#include <PS2Keyboard.h>
#include <ps2dev.h>
#define D0 16
#define D1 5
#define D2 4
#define D3 0
#define D4 2
#define D5 14
#define D6 12
#define D7 13
#define D8 15
PS2Keyboard keyboard_r;
//PS2dev keyboard(D1 , D2); //clock, data
void setup() {
// put your setup code here, to run once:
delay(1000);
keyboard_r.begin(D3, D1); // DataPin, IRQpin
Serial.begin(9600);
Serial.println("Keyboard Test:");
}
void loop() {
// put your main code here, to run repeatedly:
// if (keyboard_r.available()) {
// uint8_t s;
// // s = keyboard_r.readScanCode();
// s = keyboard_r.read();
// if (s){
//erial.println(s, HEX);
//keyboard.write(s);
// }
}
// }