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.
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
Diff: SeeedChainableLED.h
- Revision:
- 12:a16d86fac131
- Parent:
- 7:b16b9733d859
- Child:
- 15:abda719ba6e6
--- a/SeeedChainableLED.h Fri Apr 21 13:47:19 2017 +0000
+++ b/SeeedChainableLED.h Thu Apr 27 16:08:02 2017 -0600
@@ -8,6 +8,7 @@
#ifndef SEEED_CHAINABLE_LED_H
#define SEEED_CHAINABLE_LED_H
#include "mbed.h"
+#include "DataClockPair.h"
class SeeedChainableLED {
private:
@@ -22,10 +23,10 @@
void set_color_rgb(int r, int g, int b, int led = 0);
void clear_led();
void turn_on();
- SeeedChainableLED (PinName dataOut, PinName clockOut);
+ SeeedChainableLED (DataClockPair pins);
};
-SeeedChainableLED::SeeedChainableLED(PinName dataOut, PinName clockOut) : datPin_(dataOut), clkPin_(clockOut) {
+SeeedChainableLED::SeeedChainableLED(DataClockPair pins) : datPin_(pins.dataPin), clkPin_(pins.clockPin) {
clear_led();
}
