Hello, I have one of these http://adafruit.com/products/878 and I can't figure out how to make it use different analog pins other than A4 and A5. I saw this http://learn.adafruit.com/adafruit-led- ... 2c-address but I'm not exactly sure how this works and if it changes what analog pins it uses. I looked all through the code and I can't figure out how to make it use different analog pins
Thanks in advance.
(Need Help) Changing the analog pins on my 7-segment LED display
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 5
- Joined: Sat Jan 19, 2013 4:00 pm
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: (Need Help) Changing the analog pins on my 7-segment LED display
The LED display uses I2C to communicate with your microcontroller. I2C requires two wires for communication - 1 for data, and the other for a data clock.
The Arduino provides I2C communications through pins A4 and A5. This is part of the hardware of the microcontroller itself. While it is possible to perform I2C communications in software using any two digital output pins (known as "bit-banging"), there is no support for this in the standard Arduino run-time library or in the Adafruit LED library.
The tutorial page you refer to concerns changing the I2C address of the LED. You can connect an arbitrary number of I2C devices to the same two wires. Each device connected to those wires must have a unique address, in order to enable individual control of each device.
You can select one of 8 possible addresses on the LED, meaning that you can connect up to 8 LEDs to the arduino through pins A4 and A5.
The Arduino provides I2C communications through pins A4 and A5. This is part of the hardware of the microcontroller itself. While it is possible to perform I2C communications in software using any two digital output pins (known as "bit-banging"), there is no support for this in the standard Arduino run-time library or in the Adafruit LED library.
The tutorial page you refer to concerns changing the I2C address of the LED. You can connect an arbitrary number of I2C devices to the same two wires. Each device connected to those wires must have a unique address, in order to enable individual control of each device.
You can select one of 8 possible addresses on the LED, meaning that you can connect up to 8 LEDs to the arduino through pins A4 and A5.
- zener
- Posts: 4567
- Joined: Sat Feb 21, 2009 2:38 am
Re: (Need Help) Changing the analog pins on my 7-segment LED display
Maybe if you explain what you are doing and why you want to move the I2C then someone can offer another solution.
-
- Posts: 5
- Joined: Sat Jan 19, 2013 4:00 pm
Re: (Need Help) Changing the analog pins on my 7-segment LED display
What driverblock said worked. I was just trying to use a the RTC breakout board with the 7 segment display. thanks guys
-
- Posts: 152
- Joined: Sat Nov 17, 2012 3:06 am
Re: (Need Help) Changing the analog pins on my 7-segment LED display
I have a 7segment w/ i2c backpack and I want to use it with my uno R3. Has anyone seen any tutarials that can at least help me figure this out for myself. I will be getting my raspberry pi soon, and I have seen the tutorial for that, but I would like to learn to use it with my Uno. I have looked thru material on i2c in general and I get the idea. But I'm still not sure where to start when it comes to using it with my Uno. Any links or advice would be much appreciated.
thanx
S.
thanx
S.
- adafruit_support_bill
- Posts: 88153
- Joined: Sat Feb 07, 2009 10:11 am
Re: (Need Help) Changing the analog pins on my 7-segment LED display
@Syn7 - we have a tutorial for the Arduino too: http://learn.adafruit.com/adafruit-led- ... k/overview
-
- Posts: 152
- Joined: Sat Nov 17, 2012 3:06 am
Re: (Need Help) Changing the analog pins on my 7-segment LED display
Sweet. I feel a lil silly for missing that, but thanx. Much appreciated.
Please be positive and constructive with your questions and comments.