Notifications
Clear all
Topic starter
12/09/2022 9:34 am
Hi guys, is it possible for a plugin to detect if a button was pressed in the arduino?
I couldn't find any documentation related to plugins and checking the plugins dlls didn't help much. I noticed that there is a serial monitor plugin but I am wondering if this kind of arduino action is somehow exposed for custom plugins in a more friendly way.
Thank you in advance,
12/09/2024 8:54 am
It depends on what button this is. If you are talking about joystick buttons, there is direct support for this in Simhub. If you are talking about a hardware button, you are probably best off with SHCustomProtocol.h and listen to the button there.
I pick up the input from a potentiometer there to drive PWM output on the Arduino for setting backlight brightness.