SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By lindz
#116628
I have 4 of these with the red 1" alphanumeric displays and they work great! I love that I only have to use 6 wires.

All of the functions work exactly like they are supposed to.

So I take the Example Arduino Code on the Sparkfun driver website
http://www.sparkfun.com/products/10103


and the only thing I can't figure out is how to use the "#define FLIPDISPLAY" to flip the characters over. The README in the Arduino Library link says to define it before you include the library but it doesn't do anything no matter where I put it. Any advice?
By follower
#116641
lindz wrote:The README in the Arduino Library link says to define it before you include the library but it doesn't do anything no matter where I put it. Any advice?
Does your code look like this at the top of the sketch:
Code: Select all
#define FLIPDISPLAY
#include <AlphaNumeric_Driver.h>
I don't have the actual devices to test with but it seemed to use different definitions for the pins when I had that code.

--Philip;
By dearmash
#133621
I'm not sure if you found your solution, but I'm running into the same thing. Has anyone had any luck?

With FLIPDISPLAY defined, the following occurs:
Code: Select all
#define FLIPDISPLAY

#include <AlphaNumeric_Driver.h>

#define NUMBER_OF_DISPLAYS 2

int SDIpin = 12;
int CLKpin = 11;
int LEpin = 10;
int OEpin = 9;

alphaNumeric myDisplay(SDIpin, CLKpin, LEpin, OEpin, NUMBER_OF_DISPLAYS);

void setup()
{
  myDisplay.scroll("M", 0);  // Incorrectly right side up
  delay(1000);
  myDisplay.clear();
  delay(1000);
  myDisplay.scroll("m", 0);  // Incorrectly right side up
  delay(1000);
  myDisplay.clear();
  delay(1000);
  myDisplay.shift16(M_CHAR);  // Correctly upside down
}
By dearmash
#133657
I'm basically calling this a silly inconsistency between headers, the linker, object files, gamma radiation.

The problem still exists through restarting the arduino IDE. My solution thus far is then to change the #ifndef to a #ifdef in the header.

Next thing to play with, see if swapping input / output is feasible.