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
Revision 1:a288ae0fdd74, committed 2017-05-21
- Comitter:
- tulanthoar
- Date:
- Sun May 21 13:45:39 2017 -0600
- Parent:
- 0:6d9fab76ca5b
- Commit message:
- Add default constructor
Changed in this revision
DataClockPair.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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