setTime (_TIME_) //Sets the time to the compile time It is designed to be used with the compile time macro _TIME_ (See here for details on compile time macros). This function takes a string in the form "HH:MM:SS" and uses it to updated the time. String strTime - The time to set (as a string)īool - Success or failure of string conversion setTime(13, 27, 00) //Sets the time to 27 minutes past 1.
The following commands only function when clock mode is enabled:Īll inputs to this function are in integer form. The tubes will display all numbers in 3 groups of two, as shown: HH.MM.SS with a decimal point between each group.īoolean state - TRUE for clock mode enabled, FALSE for clock mode disabled blank(0) //Unblanks the displayĬlock mode is a convenient mode included with the library, which allows the display to be used quickly and easily as a clock or timer. setDecimalPoint(3, 1) //Turns on the 3 rd segment decimal pointīoolean state - TRUE for blank, FALSE for not blanked the first digit is segment 0, the second segment 1 etc.) nixie. Should you wish to control the decimal point yourself, this command allows you to manually turn on or off the decimal points. Int segment - The segment of the decimal point you wish to alter (indexed from 0)īoolean state - The state of the decimal point display(numberToDisplay) //Displays pi on the tubes For a floating point number, the decimal point position is calculated and implemented automatically, though this will require IN12B tubes to display. The display function is the most useful function of the library it takes an input number, which takes an integer, a long integer, or a floating point number (see for info on data types) and displays it on the tubes. This links the command to the library, and without it the sketch will not be able to compile.įloat / int / long numberToDisplay - The number you wish to display Create instance of class with custom name - Strobe and OE not usedįrom now on all commands must start with your class name, then a dot. Create instances of class - Strobe not used
#NIXIE CLOCK MINI DIN FULL#
The output_enable and strobe fields are optional connections, but we recommend connecting them to access the full functionality of the library.
#NIXIE CLOCK MINI DIN DRIVER#
The pins you are connecting to the Nixie tube driver with must be specified in the data and clock fields. To begin using the library you must first define the class, in this case, ‘nixie’, but you could call it anything.
Int strobe - Pin which the strobe line is connected to ( OPTIONAL) Int output_enable - Pin which the output enable line is connected to ( OPTIONAL) Int clock - Pin which the clock line is connected to Int data - Pin which the data line is connected to Nixie nixie(data, clock, optional: output_enable, optional: strobe)
This allows the IDE to recognise commands from the library. Whenever you are using the Nixie tube driver library, you must include it at the top of your sketch.