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.
Dependents: MutiplexedDisplaysSocketServer mltiplexed_7_segment_displays_over_ethernet mltiplexed_7_segmt_displays_ethernet Multi_7_Seg
SN74CBT3257.cpp
00001 #include "SN74CBT3257.h" 00002 #include "mbed.h" 00003 00004 00005 SN74CBT3257::SN74CBT3257(PinName S0, PinName S1, PinName S2, PinName S3, PinName OEB0, PinName OEB1,PinName OEB2, PinName OEB3) : 00006 mS0(S0), mS1(S1), mS2(S2), mS3(S3),mOE0(OEB0),mOE1(OEB1),mOE2(OEB2),mOE3(OEB3) 00007 { 00008 mS0=1; 00009 mOE0=1; 00010 mS1=1; 00011 mOE1=1; 00012 mS2=1; 00013 mOE2=1; // Disable All Floors 00014 mS3=1; 00015 mOE3=1; 00016 } 00017 00018 00019 void SN74CBT3257::Select_Floor_Zero(void) 00020 { 00021 mS0=0; 00022 mOE0=0; //Out Enable Floor Zero 00023 mS1=1; 00024 mOE1=1; // Disable All Other Floors 00025 mS2=1; 00026 mOE2=1; 00027 mS3=1; 00028 mOE3=1; 00029 00030 00031 } 00032 00033 00034 00035 void SN74CBT3257::Select_Floor_One(void) 00036 { 00037 mS0=1; 00038 mOE0=0; //Out Enable Floor One 00039 mS1=1; 00040 mOE1=1; 00041 mS2=1; 00042 mOE2=1; // Disable All Other Floors 00043 mS3=1; 00044 mOE3=1; 00045 00046 } 00047 00048 00049 void SN74CBT3257::Select_Floor_Two(void) 00050 { 00051 mS0=1; 00052 mOE0=1; 00053 mS1=0; 00054 mOE1=0; //Out Ensable Floor Two 00055 mS2=1; 00056 mOE2=1; // Disable All Other Floors 00057 mS3=1; 00058 mOE3=1; 00059 } 00060 00061 00062 00063 void SN74CBT3257::Select_Floor_Three(void) 00064 { 00065 mS0=1; 00066 mOE0=1; 00067 mS1=1; 00068 mOE1=0; //Out Enable Floor Three 00069 mS2=1; 00070 mOE2=1; // Disable All Other Floors 00071 mS3=1; 00072 mOE3=1; 00073 } 00074 00075 00076 void SN74CBT3257::Select_Floor_Four(void) 00077 { 00078 mS0=1; 00079 mOE0=1; 00080 mS1=1; 00081 mOE1=1; 00082 mS2=0; //Out Enable Floor Four 00083 mOE2=0; // Disable All Other Floors 00084 mS3=1; 00085 mOE3=1; 00086 } 00087 00088 00089 00090 void SN74CBT3257::Select_Floor_Five(void) 00091 { 00092 mS0=1; 00093 mOE0=1; 00094 mS1=1; 00095 mOE1=1; 00096 mS2=1; //Out Enable Floor Five 00097 mOE2=0; // Disable All Other Floors 00098 mS3=1; 00099 mOE3=1; 00100 00101 } 00102 00103 00104 void SN74CBT3257::Select_Floor_Six(void) 00105 { 00106 mS0=1; 00107 mOE0=1; 00108 mS1=1; 00109 mOE1=1; 00110 mS2=1; 00111 mOE2=1; // Disable All Other Floors 00112 mS3=0; //Out Enable Floor Six 00113 mOE3=0; 00114 } 00115 00116 00117 void SN74CBT3257::Select_Floor_Seven(void) 00118 { 00119 mS0=1; 00120 mOE0=1; 00121 mS1=1; 00122 mOE1=1; 00123 mS2=1; 00124 mOE2=1; // Disable All Other Floors 00125 mS3=1; //Out Enable Floor Seven 00126 mOE3=0; 00127 }
Generated on Thu Jul 14 2022 09:23:20 by
1.7.2