2018-02-21 08:36 AM
Hey. I have program using graphical library SFML on my PC, which is suppose to send commands like 'turn on PWM on pin X', 'set pin X state high' etc to microcontroller. Until now, I was using Raspberry Pi 3 with pigpio library. I connected PC and Rpi via SSH and just send commands for Rpi terminal and pigpio library managed it. Is there a possiblity to achieve that with STM32 instead of Raspberry Pi? What should I learn to do that?
2018-02-21 10:09 AM
using graphical library SFML on my PC
Never heard of it - how about providing a link?
What should I learn to do that?
You will have to learn the exact format of the 'commands' sent by SFML.
Then you will have to learn to write code to receive & understand those commands.
Then you will have to learn to write code to
act upon the received commands.
I was using Raspberry Pi 3 with pigpio library
So you could start by studying that library - and any available documentation
2018-02-21 02:03 PM
Oh, maybe I've express myself badly. The 'commands' are not from SFML (
link) - it's multimedia library, used for 'front-end' app on my Windows. Commands (caled 'pigs') were from pigpio ( link) - but this library is made specially for Raspberry. With 'pigpiod' daemon (Raspian is Debian distribution for Raspberry) you can just type 'sudo pigs w 21 1' in Raspberry terminal for example, and it will write HIGH state on pin no. 21. That's the reason why I could connect via SSH and send this commands. But STM32 has no 'console/terminal' and no pigpio library