Library for MAXREFDES72# that supports configuration of shield for different PMOD types and the DS3231 RTC

Dependencies:   ds3231 max14661

Dependents:   ard2pmod_demo max14724_hello_world ALS_Proximity_Demo

Ard2Pmod Shield Component Page

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;