mattjlewis / diozero

Java Device I/O library that is portable across Single Board Computers and microcontrollers. Tested with Raspberry Pi, Odroid C2, BeagleBone Black, Next Thing CHIP, Asus Tinker Board and Arduinos / Pico. Supports GPIO, I2C, SPI as well as Serial communication. Also known to work with Udoo Quad.
https://www.diozero.com
MIT License
263 stars 59 forks source link

Add support for x86 Linux #49

Closed 452 closed 3 years ago

452 commented 5 years ago

Java dio for x86 support I want to use Java and Groovy script for development, debugging, investigating my home automation. But existing libraries work only for embedded boards like rpi. I investigate and found some solutions like enhance i2c and GPIO on my laptop or stationary pc over USB adapter https://github.com/harbaum/I2C-Tiny-USB https://github.com/harbaum/I2C-Tiny-USB/tree/master/digispark

https://youtu.be/rriKd9jkdJQ

Digispark Attiny85 I2C-Tiny-USB FT311D USB To I2C IIC SPI UART GPIO PWM Converter Adapter 3.3V/5V FT232H Multifunction High-Speed USB to JTAG UART/ FIFO SPI/ I2C

https://github.com/dvlopt/linux-i2c.java https://github.com/dvlopt/linux-gpio.java

mattjlewis commented 5 years ago

Hi, I'm not sure what you are requesting here. You can use diozero for remotely connecting to a range of boards, both wired and wireless. You can connect to Raspberry Pis remotely using eight pigpio or my own remote protocol, you can connect to ESP type boards via USB and some via Bluetooth / Wifi. Matt

452 commented 4 years ago

just how to use your library with laptop hardware with i2c bus? (I not need any embedded pc, rpi, etc)

I can extend numbers of i2c busses on my laptop with Linux OS, and use for development directly from Java

mattjlewis commented 4 years ago

Interesting. The first thing would be to get the system-utils-native C project to compile on your laptop. Once you have that compiled you can then try using com.diozero.internal.provider.sysfs.NativeI2C. If all of this works, I can help you define a new board so that you can use the higher level abstractions.

mattjlewis commented 3 years ago

Closing as no response.