Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/9d4/blink-kboard

Control arduino or nodemcu boards on keyboard press.
https://github.com/9d4/blink-kboard

ardunio esp8266 iot python python3

Last synced: 5 days ago
JSON representation

Control arduino or nodemcu boards on keyboard press.

Awesome Lists containing this project

README

        

# 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](https://platformio.org/). 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!