Perl: the Markov chain saw | |
PerlMonks |
Re^4: perl to I2Cby afoken (Chancellor) |
on Mar 26, 2023 at 15:30 UTC ( [id://11151234]=note: print w/replies, xml ) | Need Help?? |
The one terse sentence we got from the OP points more toward controlling an I²C based device from a Windows computer than manipulating internal I²C devices. That's what a FT232H based board could do. Also, a coworker got a recommendation to use https://spidriver.com/ to test third party SPI hardware by the maker of that hardware. It is open source hardware and software, with a repo at https://github.com/jamesbowman/spidriver. That device has two "sister devices" that speaks I²C instead of SPI: https://i2cdriver.com/, https://i2cdriver.com/mini.html, repo at https://github.com/jamesbowman/i2cdriver. There are no Perl modules yet, but if C and python can talk to the driver hardware via a simple (USB virtual) serial port, Perl should be able to do so, too. At least the serial port part is already done in Device::SerialPort and Win32::SerialPort, so all that's left to do is to stuff the right bytes into the serial port and pull out some other bytes. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|