Dec-27-2021, 01:16 AM
I want to use a joystick to control a RS-232 controlled telescope. I have installed PyGame and have the joystick working. Now, I want to send a serial ascii text string via RS-232 to my telescope depending on my joystick movements. So, I need to know how to use python to send and receive text characters to my scope via a USB port configured for serial communication. I was hoping that PyGame might have something like this but I have not found it as yet.
Stand alone Terminal programs like PUTTY will do this task but I want to integrate my telescope commands into my python program. Sp, I need a function to send a text string, a function to detect if there is a message to read, and then a function to read and display the message.
Stand alone Terminal programs like PUTTY will do this task but I want to integrate my telescope commands into my python program. Sp, I need a function to send a text string, a function to detect if there is a message to read, and then a function to read and display the message.