Re: inpout32

new topic     » goto parent     » topic index » view thread      » older message » newer message
ChrisB said...

I may be a little late to the party, but if you are after i/o from a pc, why aren't you using https://www.adafruit.com/product/2264 , the FT232H board which gives a PC gpio pins, see https://learn.adafruit.com/circuitpython-on-any-computer-with-ft232h.

Sadly you have to use python to control it, but it's not a terrible language to learn, and it may even be possible to use a python shim between your Eu program, and the FT232H

I don't think you need Python to control it. Digging into their libraries, it looks like everything is based on pyusb which is a wrapper for libusb. So we'd need to start by wrapping libusb and then building an I/O library similar to Blinka on top of libusb.

katsmeow said...
petelomax said...

Can anyone think of a fun cheap little idea for me to try?

https://zadig.akeo.ie/

https://en.wikipedia.org/wiki/WinUSB

I think you're on the right track here. We can't do this with Euphoria yet but the Adafruit FT232H, as ChrisB suggested, seems to be what you're looking for. The board itself takes care of most of the complexity associated with modern USB while providing a simple "send/receive bytes" interface from Windows. I think it's worth investigating the hardware to better understand how to use it correctly before trying to make it work with Euphoria.

Ultimately, I do intend to work on getting Euphoria running on hobby microcontroller boards like Arduino, Pi Pico, and ESP32, but to do that we need either a lightweight interpreter that can run directly on the device, or a specialized translator that can output the correct. It would be worthwhile to model this after CircuitPython or its upstream project MicroPython.

-Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu