I am currently reading a DS1307 adafruit breakout board and I need to drive two nixie tubes from a shift register. The shift register is running two 74141 IC chips. I have code that loops through all the nixie digits one at a time with a delay of 1 second between each. Now I need to write some code to pull min, hour, and second and change the shift register low/high outputs to display the correct nixie digit. I have the DS1307 returning the correct time on my com by using
Serial.print(now.hour(), DEC);
Serial.print(now.minute(), DEC);
Serial.print(now.second(), DEC);
However, I am not sure how to dimension a string, set that string equal to the two digits on the hour, minute, or time, and then divide the two digits and write if statements to correctly display the tubes. I am used to VB.NET and now C coding.
=======================UPDATE=======================
I am using this code to set any individual digit of the nixie tube to on.
//Turn on 0
sr.set(4, LOW);
sr.set(5, LOW);
sr.set(6, LOW);
sr.set(7, LOW);
The sr is the shift register and each number is which leg of the shift register I am turning low or high. This specific piece turns on the digit 0.