Re: Code Bounty

new topic     » goto parent     » topic index » view thread      » older message » newer message

The Raspberry Pi OS is not a real-time OS, so if you need to read the inputs very fast, it's probably not the best choice. It's also, as you noted, a needless expense, if you've already got a usable PC available.

The best for what you have described is an arduino. You can read individual pins, or a set of pins as a "port" https://www.instructables.com/Arduino-and-Port-Manipulation/

In addition, you can set interrupts, so the port reading will take place immediately. Or you can just poll repeatedly, whichever suits the need.

Way cheaper than a Pi, and easier to program.

There are programs (examples included with the arduino ide) that allow the arduino to pretend to be a usb keyboard and/or mouse. That should work as input to your Euphoria program, if higher-than-human speed is not required.

When it comes to connecting this to Windows in any other way, it gets tricky: https://itp.nyu.edu/physcomp/lab-intro-to-serial-communications/#A_Command_Line_Option_for_Serial_Communication

Talking to the port with Euphoria on Windows? Somebody else will have to answer that one.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu