7-Segment LED HT16K33 Backpack
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- sourav1230
- Posts: 5
- Joined: Fri Apr 10, 2015 6:35 pm
7-Segment LED HT16K33 Backpack
Hi. I was working on this project for a while now, where i use a keypad to enter in a time, and turn the LED display into a timer. The problem im having is that when i hook the LED display up and load an example from the LED_Backpack library, nothing happens. It just stays blank. I don't know if its a defect, if im doing something wrong, but i'm pretty sure i got the wiring right, and i soldered everything. Someone PLS help. Thx.
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: 7-Segment LED HT16K33 Backpack
The photos above are a bit too small. We need to see things like details of the solder joints and the connections between the backpack and the Arduino.
800x600 images ususally work.
800x600 images ususally work.
- sourav1230
- Posts: 5
- Joined: Fri Apr 10, 2015 6:35 pm
Re: 7-Segment LED HT16K33 Backpack
Code: Select all
/***************************************************
This is a library for our I2C LED Backpacks
Designed specifically to work with the Adafruit LED 7-Segment backpacks
----> http://www.adafruit.com/products/881
----> http://www.adafruit.com/products/880
----> http://www.adafruit.com/products/879
----> http://www.adafruit.com/products/878
These displays use I2C to communicate, 2 pins are required to
interface. There are multiple selectable I2C addresses. For backpacks
with 2 Address Select pins: 0x70, 0x71, 0x72 or 0x73. For backpacks
with 3 Address Select pins: 0x70 thru 0x77
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, all text above must be included in any redistribution
****************************************************/
// Enable one of these two #includes and comment out the other.
// Conditional #include doesn't work due to Arduino IDE shenanigans.
#include <Wire.h> // Enable this line if using Arduino Uno, Mega, etc.
//#include <TinyWireM.h> // Enable this line if using Adafruit Trinket, Gemma, etc.
#include "Adafruit_LEDBackpack.h"
#include "Adafruit_GFX.h"
Adafruit_7segment matrix = Adafruit_7segment();
void setup() {
#ifndef __AVR_ATtiny85__
Serial.begin(9600);
Serial.println("7 Segment Backpack Test");
#endif
matrix.begin(0x70);
}
void loop() {
// print a hex number
matrix.print(0xBEEF, HEX);
matrix.writeDisplay();
delay(500);
// print a floating point
matrix.print(12.34);
matrix.writeDisplay();
delay(500);
// print with print/println
for (uint16_t counter = 0; counter < 9999; counter++) {
matrix.println(counter);
matrix.writeDisplay();
delay(10);
}
// method #2 - draw each digit
uint16_t blinkcounter = 0;
boolean drawDots = false;
for (uint16_t counter = 0; counter < 9999; counter ++) {
matrix.writeDigitNum(0, (counter / 1000), drawDots);
matrix.writeDigitNum(1, (counter / 100) % 10, drawDots);
matrix.drawColon(drawDots);
matrix.writeDigitNum(3, (counter / 10) % 10, drawDots);
matrix.writeDigitNum(4, counter % 10, drawDots);
blinkcounter+=50;
if (blinkcounter < 500) {
drawDots = false;
} else if (blinkcounter < 1000) {
drawDots = true;
} else {
blinkcounter = 0;
}
matrix.writeDisplay();
delay(10);
}
}
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: 7-Segment LED HT16K33 Backpack
Your connections look good, so you may have a dead backpack.
Send a note to [email protected] with a link to this thread and the folks there will get you a replacement.
Send a note to [email protected] with a link to this thread and the folks there will get you a replacement.
Please be positive and constructive with your questions and comments.