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.
Revision 4:aac4aef5726e, committed 2016-12-15
- Comitter:
- fischk08
- Date:
- Thu Dec 15 23:06:06 2016 +0000
- Parent:
- 3:2172e7bc28f7
- Commit message:
- final lab version for presentation
Changed in this revision
| NixieTube.cpp | Show annotated file Show diff for this revision Revisions of this file |
| NixieTube.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/NixieTube.cpp Wed Dec 14 15:39:38 2016 +0000
+++ b/NixieTube.cpp Thu Dec 15 23:06:06 2016 +0000
@@ -101,9 +101,8 @@
digit3 = val3;
digit4 = val4;
}
-void NixieTube::set_dim(float duty,int pulsewidth){
+void NixieTube::set_dim(float duty){
_cen.write(duty);
- _cen.period_us(pulsewidth);
}
void NixieTube::debug_digits(){
std::printf("Tube1: %d,Tube2: %d,Tube3: %d,Tube4: %d\r\n",digit1,digit2,digit3,digit4);
--- a/NixieTube.h Wed Dec 14 15:39:38 2016 +0000
+++ b/NixieTube.h Thu Dec 15 23:06:06 2016 +0000
@@ -10,7 +10,7 @@
~NixieTube();
void update_individual_nixie_tube(int,int);
void update_all_nixie_tube(int,int,int,int);
- void set_dim(float,int);
+ void set_dim(float);
void debug_digits();
private:
DigitalOut _sdi;