Fork of Library for MAXREFDES72# that supports configuration of shield for different PMOD types and the DS3231 RTC
Fork of ard2pmod by
Diff: ard2pmod.cpp
- Revision:
- 6:9e75c6a2dff5
- Parent:
- 3:64d54fa4dd3c
- Child:
- 7:d3881d2c2d6b
--- a/ard2pmod.cpp Fri Nov 28 02:46:16 2014 +0000 +++ b/ard2pmod.cpp Wed Dec 03 04:17:15 2014 +0000 @@ -50,6 +50,38 @@ /**************************************************************//** +* Default constructor for Ard2Pmod Class, all mux switches open +* Use with Max14661 member functions for custom mux settings +* +* On Entry: +* +* On Exit: +* @return none +* +* Example: +* @code +* #include "ard2pmod.h" +* +* int main(void) +* { +* Ard2Pmod ard2pmod(); +* +* //main app. +* for(;;) +* { +* } +* } +* @endcode +******************************************************************/ +Ard2Pmod::Ard2Pmod() : +Max14661(ARD2PMOD_SDA, ARD2PMOD_SCL, MAX14661_I2C_ADRS0), +Ds3231(ARD2PMOD_SDA, ARD2PMOD_SCL) +{ + wrt_cmd_registers(DISABLE_BANK, DISABLE_BANK); +} + + +/**************************************************************//** * Constructor for Ard2Pmod Class * * On Entry: