I2C Module Identification

Show us your Gamebuino clone or the last module you made.

I2C Module Identification

Postby inversesandwich » Sat Apr 19, 2014 11:34 pm

If official gamebuino modules will be released, could there a module ID that gets transmitted over I2C? So the I2C address could be random for all modules, and then have a secondary identifier that could be used by creators via the library.

So for example, 0x01 could be a shoulder button, 0x02 could be an accelerometer and 0x03 could be a rumble motor. This would make it easy for developers to easily add extra functionality to their game. The library could even have it's own functions so you wouldn't even have to know how to communicate with it to use it.

This could be used just for official modules, if someone wants to use a third-party I2C module they can use the existing address.

I haven't really thought this through and I might be talking utter crap but I'm just throwing ideas out there.
User avatar
inversesandwich
 
Posts: 32
Joined: Sat Apr 19, 2014 10:34 pm
Location: United Kingdom

Re: I2C Module Identification

Postby rodot » Sun Apr 20, 2014 7:33 am

Of course official modules will be provided with a library, so you won't have to mess with addresses and stuff. Does that answer your question ?
User avatar
rodot
Site Admin
 
Posts: 1290
Joined: Mon Nov 19, 2012 11:54 pm
Location: France


Return to Hardware Gallery

Who is online

Users browsing this forum: No registered users and 1 guest

cron