Please be aware of all shipping deadlines before placing your order - we cannot guarantee orders will arrive before Christmas!

Have old 0012 code that isn't compiling in 1.5.2
Moderators: adafruit_support_bill, adafruit

Have old 0012 code that isn't compiling in 1.5.2

by GreyFox5 on Thu Apr 18, 2013 9:30 pm

Hello,
I had someone set this code up for me and 12 Nixie Tubes. But I cannot get this to complie in 1.5.2 could someone help?
Error info here:
In file included from OgiLumen_Chasing_3s.pde:13:
C:\Users\Game\Downloads\Arduino\arduino-1.5.2\hardware\arduino\avr\cores\arduino/Nixie.h:57: error: 'byte' has not been declared
In file included from OgiLumen_Chasing_3s.pde:37:
C:\Users\Game\Downloads\Arduino\arduino-1.5.2\hardware\arduino\avr\cores\arduino/Arduino.h:113: error: expected ',' or '...' before numeric constant
C:\Users\Game\Downloads\Arduino\arduino-1.5.2\hardware\arduino\avr\cores\arduino/Arduino.h:114: error: expected ',' or '...' before numeric constant


Code here:
Code: Select all | TOGGLE FULL SIZE
/*
          change this file name to wigwagnixie.pde

  nixie_write_trim - sample code using the Nixie library
 for controlling the Ogi Lumen nixie tube driver.
 Created by Lionel Haims, July 25, 2008.
 Released into the public domain.
  Design of output by James Sanders 4/17/09
  Released into the public domain.
 */

// include the library
#include <Nixie.h>

// note the digital pins of the arduino that are connected to the nixie driver
#define dataPin 2  // data line or SER
#define clockPin 3 // clock pin or SCK
#define latchPin 4 // latch pin or RCK

// note the number of digits (nixie tubes) you have (buy more, you need more)
#define numDigits 16

// just some defines to simplify the examples
#define shortDelay 2   // higher causes a slight flash when updating
#define longDelay 800
#define wagDelay 170        // lower causes faster wigwag
#define ladelay 50           // ladder routine delay
#define fallDelay 40        //  delay between digit falls.
#define waveDelay 50        // wave delay





// Create the Nixie object
// pass in the pin numbers in the correct order
Nixie nixie(dataPin, clockPin, latchPin);

void setup()
{
  // Clear the display if you wish
  nixie.clear(numDigits);
}


void loop()
{
 

  int tube = 1;
  int i = 1;
  int count = 0;

  //int rnd = random(0,9);
  // just some local variables to help the example
  //int highestNum = pow(10,numDigits)-1;
  // 3894057261 is the height order
  //rnd = random(0,9);
  //randomSeed(rnd);
  //rnd = random(0,9);
  nixie.clear(numDigits);
  delay(longDelay);

  // try for wave .     
  nixie.writeNumTrim( 3,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 8,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 9,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 4,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 0,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 5,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 7,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 2,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 6,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 1,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);

  nixie.writeNumTrim( 6,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 2,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 7,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 5,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 0,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 4,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 9,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 8,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 3,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);

  nixie.writeNumTrim( 8,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 9,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 4,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 0,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 5,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 7,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 2,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 6,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 1,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);

  nixie.writeNumTrim( 6,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 2,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 7,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 5,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 0,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 4,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 9,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 8,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 3,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);

  nixie.writeNumTrim( 8,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 9,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 4,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 0,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 5,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 7,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 2,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 6,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 1,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);

  nixie.writeNumTrim( 6,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 2,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 7,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 5,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 0,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 4,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 9,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 8,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 3,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);

  nixie.writeNumTrim( 8,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 9,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 4,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 0,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 5,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 7,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 2,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 6,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 1,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);

  nixie.writeNumTrim( 6,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 2,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 7,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 5,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 0,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 4,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 9,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 8,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 3,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);

  nixie.writeNumTrim( 8,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 9,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 4,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 0,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 5,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 7,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 2,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 6,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 1,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);

  nixie.writeNumTrim( 6,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 2,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 7,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 5,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 0,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 4,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 9,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 8,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 3,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);

  nixie.writeNumTrim( 8,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 9,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 4,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 0,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 5,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 7,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 2,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 6,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 1,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);

  nixie.writeNumTrim( 6,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 2,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 7,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 5,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 0,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 4,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 9,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 8,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);
  nixie.writeNumTrim( 3,1);
  delay(waveDelay);
  //nixie.clear(1);
  delay(shortDelay);

  nixie.clear(numDigits);



  // 3's chasing 6's ==================================

  for (tube=1; tube <= numDigits; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    nixie.writeNumTrim( 3,tube);
    delay(wagDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=12; tube >= 1; tube--)
  {
    nixie.writeNumTrim( 6,tube);
    nixie.writeNumTrim( 6,tube);
    delay(wagDelay+40);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // fast sweep   a 3 ====================================
  for (tube=1; tube <= numDigits; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(100);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 
//dive down to 6
i = numDigits;

   // nixie.writeNumTrim( 3,i);
    //delay(fallDelay);
    //nixie.clear(numDigits);
    //delay(shortDelay);
    nixie.writeNumTrim( 8,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay); 
    nixie.writeNumTrim( 9,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 4,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 0,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 5,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 7,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 2,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 6,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 1,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);



  for (tube=numDigits; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 6,tube);
    delay(100);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

// bring level up to 3.
i = 1;
   // nixie.writeNumTrim( 1,i);
   // delay(fallDelay);
   // nixie.clear(numDigits);
   // delay(shortDelay);
   // nixie.writeNumTrim( 6,i);
   // delay(fallDelay);
   // nixie.clear(numDigits);
   // delay(shortDelay); 
    nixie.writeNumTrim( 2,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 7,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 5,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 0,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 4,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 9,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 8,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 3,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
   

  // fast sweep   a 3 ====================================
  for (tube=1; tube <= numDigits; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(100);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 
//dive down to 6
i = numDigits;

    nixie.writeNumTrim( 3,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 8,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay); 
    nixie.writeNumTrim( 9,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 4,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 0,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 5,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 7,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 2,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 6,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 1,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);



  for (tube=numDigits; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 6,tube);
    delay(100);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

// bring level up to 3.
i = 1;
    nixie.writeNumTrim( 1,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 6,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay); 
    nixie.writeNumTrim( 2,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 7,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 5,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 0,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 4,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 9,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 8,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 3,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
 
 
 
 
  // faster yet sweep multi  pass=====================================================
  for (tube=1; tube <= numDigits; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(30);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=numDigits; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 6,tube);
    delay(30);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

 


 
  for (tube=1; tube <= numDigits; tube = tube + 1)
  {
    nixie.writeNumTrim( 3,tube);
    delay(30);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=numDigits; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 6,tube);
    delay(30);
    nixie.clear(numDigits);
    delay(shortDelay);
  }



 

  for (tube=1; tube <= numDigits; tube = tube + 1)
  {
    nixie.writeNumTrim( 3,tube);
    delay(60);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=numDigits; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 6,tube);
    delay(60);
    nixie.clear(numDigits);
    delay(shortDelay);
  }


  for (tube=1; tube <= numDigits; tube = tube + 1)
  {
    nixie.writeNumTrim( 3,tube);
    delay(100);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=numDigits; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 6,tube);
    delay(100);
    nixie.clear(numDigits);
    delay(shortDelay);
  }




  for (tube=1; tube <= numDigits; tube = tube + 1)
  {
    nixie.writeNumTrim( 3,tube);
    delay(180);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 
  for (tube=numDigits; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 6,tube);
    delay(200);
    nixie.clear(numDigits);
    delay(shortDelay);
  }


  delay(longDelay);



  // ladder sweep ===========================================================
  for (tube=1; tube <= 2; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay + (ladelay*.4));  // slow down the short sweeps a little
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=2; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay + (ladelay*.4));
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 3
  for (tube=1; tube <= 3; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay + (ladelay*.4));
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=3; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay + (ladelay*.4));
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 4
  for (tube=1; tube <= 4; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=4; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 5
  for (tube=1; tube <= 5; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=5; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 6
  for (tube=1; tube <= 6; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=6; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 8
  for (tube=1; tube <= 8; tube = tube + 1)
  {
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=8; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 10
  for (tube=1; tube <= 10; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=10; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 11
  for (tube=1; tube <= 11; tube = tube + 1)
  {
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=11; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 13
  for (tube=1; tube <= 13; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=13; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 14
  for (tube=1; tube <= 14; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=14; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 16
  for (tube=1; tube <= 16; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=16; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 14
  for (tube=1; tube <= 14; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=14; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 12
  for (tube=1; tube <= 12; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=12; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }


  // ladder to 10
  for (tube=1; tube <= 10; tube = tube + 1)
  {
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=10; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 8
  for (tube=1; tube <= 8; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=8; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }


  // ladder to 7
  for (tube=1; tube <= 7; tube = tube + 1)
  {
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=7; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 6
  for (tube=1; tube <= 6; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=6; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }


  // ladder to 5
  for (tube=1; tube <= 5; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=5; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 4
  for (tube=1; tube <= 4; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=4; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 3
  for (tube=1; tube <= 3; tube = tube + 1)
  {
    // randomSeed(rnd);
    nixie.writeNumTrim( 3,tube);
    delay(ladelay + (ladelay*.4));
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=3; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay + (ladelay*.4));
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  // ladder to 2
  for (tube=1; tube <= 2; tube = tube + 1)
  {
    nixie.writeNumTrim( 3,tube);
    delay(ladelay + (ladelay*.4));
    nixie.clear(numDigits);
    delay(shortDelay);
  } 

  for (tube=2; tube >= 1; tube--)
  {

    nixie.writeNumTrim( 3,tube);
    delay(ladelay + (ladelay*.4));
    nixie.clear(numDigits);
    delay(shortDelay);
  }



  delay(longDelay);


  // count fast to 3333 =========================================

  for(i=0; i <= 7777; i++)
  {
    // Write the number
    nixie.writeNumTrim( i, 4);
    delay(shortDelay/3);
  }
delay(longDelay);


  // fall each digit in turn
  for(i=1; i <=numDigits; i++)
 {
    nixie.writeNumTrim( 3,1);
    delay(wagDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 8,2);
    delay(wagDelay);
    nixie.clear(numDigits);
    delay(shortDelay); 
    nixie.writeNumTrim( 8,3);
    delay(wagDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 9,4);
    delay(wagDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 4,5);
    delay(wagDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 0,6);
    delay(wagDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 5,7);
    delay(wagDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
   nixie.writeNumTrim( 7,8);
    delay(wagDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 7,9);
    delay(wagDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 2,10);
    delay(wagDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 6,11);
    delay(wagDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 1,12);
    delay(wagDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
 }

  for(i=1; i <=numDigits; i++)
  {
    nixie.writeNumTrim( 3,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 8,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay); 
    nixie.writeNumTrim( 9,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 4,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 0,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 5,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 7,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 2,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 6,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 1,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }

  for(i=1; i <=numDigits; i++)
  {
    nixie.writeNumTrim( 3,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 8,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay); 
    nixie.writeNumTrim( 9,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 4,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 0,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 5,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 7,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 2,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 6,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 1,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
 
//for(i=1; i <=numDigits; i++)
 //{
      nixie.writeNumTrim( 1,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 6,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay); 
    nixie.writeNumTrim( 2,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 7,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 5,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 0,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 4,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 9,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 8,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
    nixie.writeNumTrim( 3,i);
    delay(fallDelay);
    nixie.clear(numDigits);
    delay(shortDelay);
  }


  // wait for the next example
  delay(longDelay);
  delay(longDelay);
  delay(longDelay);
}
// 3894057261 is the height order
Last edited by adafruit_support_bill on Fri Apr 19, 2013 3:41 pm, edited 1 time in total.
Reason: Please use the 'code' button when submitting code
GreyFox5
 
Posts: 1
Joined: Thu Apr 18, 2013 9:23 pm

Re: Have old 0012 code that isn't compiling in 1.5.2

by franklin97355 on Fri Apr 19, 2013 1:06 pm

Does this compile under 0012? Also if you include code place it between code tags so it is more readable and for large amounts of code attach the file rather that posting the code inline.
User avatar
franklin97355
 
Posts: 6202
Joined: Mon Apr 21, 2008 2:33 pm

Re: Have old 0012 code that isn't compiling in 1.5.2

by adafruit_support_bill on Fri Apr 19, 2013 3:47 pm

C:\Users\Game\Downloads\Arduino\arduino-1.5.2\hardware\arduino\avr\cores\arduino/Nixie.h

Is that where you installed the nixie library? See this guide for how (and where) to install.
http://learn.adafruit.com/adafruit-all- ... -a-library
User avatar
adafruit_support_bill
 
Posts: 32638
Joined: Sat Feb 07, 2009 10:11 am

Re: Have old 0012 code that isn't compiling in 1.5.2

by ogilumen on Sat May 25, 2013 2:01 am

Ahoy,


The fix is in. Sample code now plays nice with Arduino 1.0.4

See http://www.ogilumen.com/pub/fileroom/001/drivermux.zip


ogilumen
ogilumen
 
Posts: 1
Joined: Sat May 25, 2013 1:56 am