define data and clock pins in one object then pass that as one argument to 2-wire objects
Dependents: Nucleo_read_button_interrupt_copy Seeed_Grove_4_Digit_Display_Clock
Diff: DataClockPair.h
- Revision:
- 1:a288ae0fdd74
- Parent:
- 0:6d9fab76ca5b
--- a/DataClockPair.h Sun May 21 19:17:15 2017 +0000 +++ b/DataClockPair.h Sun May 21 13:45:39 2017 -0600 @@ -5,5 +5,6 @@ PinName dataPin; PinName clockPin; DataClockPair(PinName clk, PinName dat):dataPin(dat), clockPin(clk){}; + DataClockPair(){}; }; #endif