Harvie / ps2dev

Arduino library to emulate PS2 keyboard/mouse
MIT License
114 stars 27 forks source link

STM8S port? #9

Closed tinkerBOY-git closed 4 years ago

tinkerBOY-git commented 4 years ago

Is there any available port of this library to STM8S mcu?

Harvie commented 4 years ago

Hello. Currently Arduino API is supported. I've done quick googling and it seems to be possible to program STM8S using Arduino libraries, which means it might be possible. But i didn't tested it.

If there is some issue, we can tweak the code to work better.

Also if you don't want to use Arduino libraries, we probably can add header file with HAL layer, which will use #ifdefs and #defines to automaticaly translate calls to any platform that you are building on. I will accept such PR if the code will be somewhat meaningful.

Harvie commented 4 years ago

I am closing this now, please let me know if there are some specific changes that need to be done to the code in order to fit your case.