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: BDCSEG.cpp
- Revision:
- 0:78c21a02dfc9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/BDCSEG.cpp Sat Aug 19 21:51:52 2017 +0000
@@ -0,0 +1,19 @@
+#include "BCDSEG.h"
+
+int An[10]={0x40,0x79,0x24,0x30,0x19,0x12,0x02,0x58,0x00,0x18};
+int And::entrada(PinName a,PinName b,PinName c,PinName d)
+{
+ BusIn dip(a,b,c,d);
+ dipS=dip.read();
+ return dipS;
+}
+void And::ve(PinName a,PinName b,PinName c,PinName d,PinName e,PinName f,PinName g)
+{
+ a_=a;b_=b;c_=c;d_=d;e_=e;f_=f;g_=g;
+
+}
+void And::bcd(int number)
+{
+ BusOut display(g_,f_,e_,d_,c_,b_,a_);
+ display=An[number];
+}
\ No newline at end of file