Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Board Wemos Mini D1 What pin to use to work properly #37

Open
ee-e opened this issue Dec 9, 2021 · 0 comments
Open

Board Wemos Mini D1 What pin to use to work properly #37

ee-e opened this issue Dec 9, 2021 · 0 comments

Comments

@ee-e
Copy link

ee-e commented Dec 9, 2021

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);

// }

}

// }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant