Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: NixieTube.cpp
- Revision:
- 2:bb85bae1c1de
- Parent:
- 1:0470cc006ce7
- Child:
- 3:2172e7bc28f7
--- a/NixieTube.cpp Wed Dec 14 05:27:15 2016 +0000
+++ b/NixieTube.cpp Wed Dec 14 15:38:17 2016 +0000
@@ -19,12 +19,9 @@
digit2 = 2;
digit3 = 3;
digit4 = 4;
- delay1 = 0.0005;
- delay2 = 0.0045;
- brightness = 0;
curr_tube = 1;
+ _cen.period_us(10000);
_cen.write(1.0);
- _cen.period_us(10000);
std::printf("Starting Object\r\n");
tickSeq.attach(this, &NixieTube::nixie_shiftout, 0.001 );
std::printf("Sucess Ticker Started\r\n");
@@ -35,8 +32,7 @@
}
void NixieTube::nixie_shiftout() {
-
-
+
switch (curr_tube) {
case 1:
send_nixie_shiftreg(nixie_id_convert(digit1), 0, TUBE_1_CATH);
@@ -99,7 +95,7 @@
}
}
-void NixieTube::update_all_nixie_tube(int val1,int val2,int val3,int val4){
+void NixieTube::update_all_nixie_tube(int val4,int val3,int val2,int val1){
digit1 = val1;
digit2 = val2;
digit3 = val3;