- Tue Apr 28, 2015 6:44 am
#181578
Hi together,
I got stuck at an actual project at home. Besides some sensors and actors (which all are working fine), I have some trouble with the display. Hardware wiring was no problem at all, programming is a problem. Here my setup:
Microview on a breadboard, resistors, wires, bubble display.
According to the Sparkfun Learnpage (here: https://learn.sparkfun.com/tutorials/bu ... okup-guide) we have to pinout the HP Bubble Display:
Does anyone know how this can be fixed? Can this be fixed by changing the "SevSeg.h" library?
Thanks and regards,
Robert
I got stuck at an actual project at home. Besides some sensors and actors (which all are working fine), I have some trouble with the display. Hardware wiring was no problem at all, programming is a problem. Here my setup:
Microview on a breadboard, resistors, wires, bubble display.
According to the Sparkfun Learnpage (here: https://learn.sparkfun.com/tutorials/bu ... okup-guide) we have to pinout the HP Bubble Display:
Code: Select all
But now comes the problem, as the Microview uses the Pins 0-6 and A0-A5. According to this page here http://learn.microview.io/intro/general ... oview.html. So after wiring and including the library in my Arduino project, I just adjust the pin declaration: //This pinout is for a bubble dispaly
//Declare what pins are connected to the GND pins (cathodes)
int digit1 = 8; //Pin 1
int digit2 = 5; //Pin 10
int digit3 = 11; //Pin 4
int digit4 = 13; //Pin 6
//Declare what pins are connected to the segments (anodes)
int segA = 7; //Pin 12
int segB = 6; //Pin 11
int segC = 10; //Pin 3
int segD = 3; //Pin 8
int segE = 9; //Pin 2
int segF = 4; //Pin 9
int segG = 2; //Pin 7
int segDP= 12; //Pin 5
Code: Select all
But when I now try to compile my project, I get a lot of errors. And they all result from the fact, that the "SevSeg.h" library can't handle the variables filled with A0-A5. //This pinout is for a bubble dispaly
//Declare what pins are connected to the GND pins (cathodes)
int digit1 = A0; //Pin 1
int digit2 = 0; //Pin 10
int digit3 = A1; //Pin 4
int digit4 = A2; //Pin 6
//Declare what pins are connected to the segments (anodes)
int segA = 1; //Pin 12
int segB = 2; //Pin 11
int segC = A4; //Pin 3
int segD = 5; //Pin 8
int segE = A3; //Pin 2
int segF = 3; //Pin 9
int segG = 6; //Pin 7
int segDP= A5; //Pin 5
Does anyone know how this can be fixed? Can this be fixed by changing the "SevSeg.h" library?
Thanks and regards,
Robert