Author Topic: Using Digispark as linux i2c bridge  (Read 3263 times)

analog10

  • Newbie
  • *
  • Posts: 3
Using Digispark as linux i2c bridge
« 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

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Using Digispark as linux i2c bridge
« Reply #1 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

analog10

  • Newbie
  • *
  • Posts: 3
Re: Using Digispark as linux i2c bridge
« Reply #2 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.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Using Digispark as linux i2c bridge
« Reply #3 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

analog10

  • Newbie
  • *
  • Posts: 3
Re: Using Digispark as linux i2c bridge
« Reply #4 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