Nathan Yonkee / Mbed OS Seeed_Grove_4_Digit_Display_Clock

Dependencies:   Data_Clock_Pair Seeed_Chainable_LED Seeed_Four_Digit_Disp Seeed_IR_Temp_Sensor Seeed_Led_Bar

Fork of Seeed_Grove_4_Digit_Display_Clock by Seeed

Revision:
12:a16d86fac131
Parent:
7:b16b9733d859
Child:
15:abda719ba6e6
--- a/SeeedLedBar.h	Fri Apr 21 13:47:19 2017 +0000
+++ b/SeeedLedBar.h	Thu Apr 27 16:08:02 2017 -0600
@@ -1,6 +1,7 @@
 #ifndef SEEED_LED_BAR_H
 #define SEEED_LED_BAR_H
 #include "mbed.h"
+#include "DataClockPair.h"
 
 class SeeedLedBar {
   private:
@@ -11,13 +12,13 @@
     void send_sixtn_bits(int sixtnBits);
     void set_leds(int ledPower[]);
   public:
-    SeeedLedBar(PinName dataOut, PinName clockOut);
+    SeeedLedBar(DataClockPair pins);
     void ten_on();
     void ten_off();
     void ten_set(int ledPower[]);
 };
 
-SeeedLedBar::SeeedLedBar(PinName dataOut, PinName clockOut) : datPin_(dataOut), clkPin_(clockOut) { }
+SeeedLedBar::SeeedLedBar(DataClockPair pins) : datPin_(pins.dataPin), clkPin_(pins.clockPin) { }
 
 void SeeedLedBar::pin_delay(int delay_us) {
     wait_us(delay_us);