Hello,
I am wanting to be able to define a number via hardware or switches, and have the ability to read this number through I2C.
For example, say I want to define a single number within the range of 0 through 63, this would normally take 6 binary bits to define.
Does there exist a chip that I could define what those 6 bits/pins are (high/low), in turn define a number between 0 to 63, and then using I2C I could then retrieve this number?
I have been searching around on google, but don't really know what this might be called.
Or is there a better solution to this?
My goal is to be able to detect what circuit is connected through this method, then execute the corresponding code that goes along with that circuit. Each circuit type would have its own unique number. I don't want to use 6 pins to do this though.
Thanks and any help is greatly appreciated!
I am wanting to be able to define a number via hardware or switches, and have the ability to read this number through I2C.
For example, say I want to define a single number within the range of 0 through 63, this would normally take 6 binary bits to define.
Does there exist a chip that I could define what those 6 bits/pins are (high/low), in turn define a number between 0 to 63, and then using I2C I could then retrieve this number?
I have been searching around on google, but don't really know what this might be called.
Or is there a better solution to this?
My goal is to be able to detect what circuit is connected through this method, then execute the corresponding code that goes along with that circuit. Each circuit type would have its own unique number. I don't want to use 6 pins to do this though.
Thanks and any help is greatly appreciated!