monkeyboard / Wiegand-Protocol-Library-for-Arduino

Wiegand 26 and Wiegand 34 Protocol Library for Arduino
323 stars 131 forks source link

drive fuction. command buzzer and keyboard LED. #62

Open gioreva opened 1 year ago

gioreva commented 1 year ago

The keyboard supplier tells me that it is possible to do feedback. Report the result of the code with LED and buzzer. Respons code error, or code right and opening.

The library does not have this function. Can someone help me ?

jpliew commented 1 year ago

This can be done without the library. It is all depending on how the keyboard accepts the signal. Some keyboard just need high or low 5V signal but some requires transistor to drive.

What you need to do is to confirm with your keyboard supplier what signal is required.

Then you can use regular Arduino digitalWrite(GPIOPIN, HIGH) or digitalWrite(GPIOPIN, LOW) to drive the LED or the buzzer.