simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Wanted: Automate I2C setup

Fri Jan 03, 2014 7:46 am

Youngsters are coming along and using my ScratchGPIO to control stuff like the PiGlow and the Adafruit Matrix but this needs I2C enabling.

Recanatha has instructions http://www.recantha.co.uk/blog/?p=2582
but we could really do with a nice little script to automate the process

Any takers?

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Wanted: Automate I2C setup

Fri Jan 03, 2014 7:51 am

Initial spec
Rapsbian comes setup with I2C disabled and a coupel of files need changing

the ideal script (I think) would be able to analyse the current state of I2C setup and modify (or not) the config file approriately and give due regard to any other entries that might be in those files that have nothing to do with I2C.

it should probaby offer to reboot

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Wanted: Automate I2C setup

Fri Jan 03, 2014 7:53 am

Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

User avatar
croston
Posts: 708
Joined: Sat Nov 26, 2011 12:33 pm
Location: Blackpool
Contact: Website

Re: Wanted: Automate I2C setup

Fri Jan 03, 2014 9:48 am

The development version of RPi.GPIO does this already. I have not released the code yet though - watch this space!

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Wanted: Automate I2C setup

Fri Jan 03, 2014 12:14 pm

Excellent news :)

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Wanted: Automate I2C setup

Sat Jan 04, 2014 12:23 am

Et voila by @heeedt :)

https://github.com/heeed/pi2c

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

Return to “Advanced users”