Arduino 7 segment library how to use

Hi i got a problem , can someone explain me how the hell use 7seg library from ardu playground Arduino Playground - SevenSegmentLibrary.
I got common anode 4 digit display and this simple sketch:

#include "SevenSeg.h"

//Create an instance of the object.
SevSeg sevseg;

void setup() {
  //I am using a common anode display, with the digit pins connected
  //from 2-5 and the segment pins connected from 6-13
  sevseg.Begin(1,2,3,4,5,6,7,8,9,10,11,12,13);
  //Set the desired brightness (0 to 100);
  sevseg.Brightness(90);

}

void loop() {
  //Produce an output on the display
  sevseg.PrintOutput();

  //Update the number to be displayed, with a decimal
  //place in the correct position.
  sevseg.NewNum(10,(byte) 0);


}

And its displaying some crazy things not numbers i wanted.

Perhaps the segments are miswired - the abcdefg segments have to be connected
appropriately. Check the pin out carefully. Otherwise the code looks plausible.

Read my note in full.
Read the library description and make sure you are using limiting resistors if they are called for.
Select ANY TWO corresponding pins Digit X and Segment y and make them active - digtalWrite(x/y , HIGH / LOW).
Look at the setup as turning on single LED.
You may have to set the intensity if it is not set by default - again the library should tell you that.
You may not need the limiting resistors if all the drive outputs are analog, - check that too.

After you get one pair working just step thru all seven segments and than repeat single segment pair for next digit.
This way you know you got all your wires right and than you can concentrate on the library functions.
Have fun

.

  sevseg.Begin(1,2,3,4,5,6,7,8,9,10,11,12,13);

Using pin1 is not smart as that and pin 0 are used by the serial communications. But it sounds like you miss wired it.

Here is the link to the library. Hope it is the one you are using. I found more than one!
Mike
the first parameter is not a pin, but mode set.
That is why I said RT.M. Always, engeneeer on not !

The wiring is ok , im using an custom board not original arduino. Its a atmega644p sanguino board , the 7 segment on it is a 4digit in one piece(common anode).
I downloaded that lib u post and result is same , display is blinking only showing all time 8888.

Ok finally got it i had to change in library and it start to work :

  mode=mode_in;
  if (mode==1){
    DigitOn=HIGH;
    DigitOff=LOW;
    SegOn=LOW;
    SegOff=HIGH;
  }
  else {
    DigitOn=LOW;
    DigitOff=HIGH;
    SegOn=LOW; //here from HIGH to LOW
    SegOff=HIGH;//same here from HIGH to LOW
  }

first parameter is not a pin

And it's a boolean, so it should be "true" or "false", not 1 or 0.

szychor:
Ok finally got it i had to change in library and it start to work :

  mode=mode_in;

if (mode==1){
    DigitOn=HIGH;
    DigitOff=LOW;
    SegOn=LOW;
    SegOff=HIGH;
  }
  else {
    DigitOn=LOW;
    DigitOff=HIGH;
    SegOn=LOW; //here from HIGH to LOW
    SegOff=HIGH;//same here from HIGH to LOW
  }

I do not see what you changed in the library.
And you really think that is why it is working now?
Fine.
I am not convinced, but who cares.

Just wonder if you get any errors if you set the FIRST parameter > 1, say 2.
You should get errors.

And how about setting the first parameter to false or true ? Or FALSE or TRUE? That should work.
Just curious.

Have fun

Vaclav