Can I interface with digispark with python in real_time

Hello. I have a question, but before asking it, I need to tell you a short story, to make you better understand the sence of my question.

I'm not familliar with arduino and all this staff.
I have small experience with digispark Attiniy 85.
Bought it few years ago. Wanted to make automatic watering for flowers. Project was succesfully done. Water flowering don't needed anymore.
Then i've tried to use digispark as BadUSB (just for fun)
(GitHub - thanvinhbaohoang/DigiSpark-badUSB)
I was impressed with the variety of uses for this small device :wink:

And few days ago, i started to play my favorite game lineage 2.
I always use cheats and bots in this game. And now i wanted to do it again. But for unfortunatley for me, todays servers have strong anti-cheat systems which pervents all software to somehow interract with the game client.
But, thanks to god i'm familliar with python, so i tried to write my own clicker.
It was easy to do it with python, but the anti-cheat system detects that actions made from software (not from real keyboard).
Then i've tried to use special driver, wich allow you to interact with the game, hardware-like

But looks like, now anti-cheat detecting this driver to, so few days ago. I remember that i have digispark in my box. And I just make my script with digikeyboard.h
I was impressed, that it worked!

Now I came to the body of my question.
I was able to run script. But it is only combination of pressink keyboard keys.

Can I Interact with this Keyboard from python? In real-time.
Can I run some kind of listener, on this digispark_keyboard, wich will recieve data about what keys it need to press. The main logic about which key it need to press, will be maked with python software. And then after my script descided the which key it will need to press, then it will send it to digispark.
Could it be real with digispark?

Just fond the same question:

You’ll have to define what real-time means for you and how the Python code will speak to your board

To run new keyboard combination now, I need to patch digispark with new script. With the "real-time" I mean, that digispark will receive the data about which key it need to push without patching.

I dont know how can I send data to digispark. I read that it could be run as COM device, or something.
So maybe It could be run as COM device and as Keyboard in the same time.
Or how else it could receive data from pc.
This is the question, actually.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.