Digistump Forums

The Digispark => Digispark (Original) Support => Topic started by: analog10 on January 13, 2015, 05:46:02 am

Title: Using Digispark as linux i2c bridge
Post by: analog10 on January 13, 2015, 05:46:02 am
Is there a way to use a Digispark as a generic linux i2c bridge? Sort like this solution for the AtTiny45: http://www.harbaum.org/till/i2c_tiny_usb/index.shtml
Title: Re: Using Digispark as linux i2c bridge
Post by: digistump on January 13, 2015, 09:43:52 am
You could use the firmware from that site and upload it to the Digispark using the micronucleus command line
Title: Re: Using Digispark as linux i2c bridge
Post by: analog10 on January 13, 2015, 10:38:58 am
Thanks, but I don't think that's easy to do since the pinout is different and I am not sure it plays well with the Digispark bootloader. I was hoping something already existed for Digispark.
Title: Re: Using Digispark as linux i2c bridge
Post by: digistump on January 13, 2015, 11:16:35 am
Opps I should have looked at the pinout - you'd have to modify it to work with the Digispark pins.

You could use the DigiCDC library and the Wire library to make something similar - but nothing exists already.

The bootloader doesn't care what runs after the bootloader - so no conflicts there
Title: Re: Using Digispark as linux i2c bridge
Post by: analog10 on January 13, 2015, 12:01:22 pm
For the Linux driver to work the Digispark has to change its vid/pid as well as the protocol it is talking.
I think it would take a lot of porting work to get a Digispark  working with the Linux driver; I will probably just buy something.
Thanks