|
@@ -130,6 +130,22 @@ void showDigits(tube4_t dig)
|
|
|
} // End of if-else
|
|
|
}
|
|
|
|
|
|
+void lShiftDigits(tube4_t dig) {
|
|
|
+ uint32_t * buf;
|
|
|
+ uint8_t sbuf[12] = {0xf};
|
|
|
+ sbuf[4] = dig.ar[0];
|
|
|
+ sbuf[5] = dig.ar[1];
|
|
|
+ sbuf[6] = dig.ar[2];
|
|
|
+ sbuf[7] = dig.ar[3];
|
|
|
+
|
|
|
+ int i;
|
|
|
+ for (i=0; i<9; i++) {
|
|
|
+ buf = (uint32_t *)&sbuf[i];
|
|
|
+ _show_digits(* buf);
|
|
|
+ tdelay_ms(100);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
void slideDigits(tube4_t dig) {
|
|
|
tube4_t buf;
|
|
|
const uint8_t pause = 100;;
|