Skip to content

Control arduino or nodemcu boards on keyboard press.

License

Notifications You must be signed in to change notification settings

9d4/blink-kboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blink-kboard

Control arduino or nodemcu boards on keyboard press. This thing is very simple. When we press our keyboard, we send data(number) to the serial port. In the Arduino, we wait for incoming data from serial, then we process it, maybe to turn on led or anything else.

The Keyboard Listener

The listener listens keyboard press. The program located in /kboard. It's written in python3. It sends char 1 on key press, and sends char 0 on key release. You can customize it if needed.

Get the requirements

$ pip3 install -r requirements.txt    # run it inside /kboard dir

Then run it

$ python3 kboard.py

The Arduino

We use platform io in vscode to compile the source code of the arduino. If you have not use it before, consider to learn it here. It's easier to get libraries and there are so many fancy things compared with Legacy Arduino IDE. This source code is supposed to be used for NodeMCU ESP8266. If you have another board just create new code for corresponding board.

Thank you, give a try and customize it!

About

Control arduino or nodemcu boards on keyboard press.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published