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: SeeedLedBar.h
- 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);