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:
- 3:64d54fa4dd3c
- Parent:
- 2:686912ed055f
- Child:
- 6:9e75c6a2dff5
--- a/ard2pmod.cpp Fri Nov 21 04:39:49 2014 +0000 +++ b/ard2pmod.cpp Mon Nov 24 23:15:36 2014 +0000 @@ -79,7 +79,15 @@ { switch(pmod_type) { - case PMOD_TYPE_I2C: + case PMOD_TYPE_I2C_A: + set_switches((SW12 | SW09), (SW11 | SW10)); + break; + + case PMOD_TYPE_I2C_B: + set_switches((SW09 | SW07), (SW10 | SW08)); + break; + + case PMOD_TYPE_I2C_AB: set_switches((SW12 | SW09 | SW07), (SW11 | SW10 | SW08)); break;