MAX14661 Library Demo

Dependencies:   max14661 mbed

MAX14661 Component Page

Files at this revision

API Documentation at this revision

Comitter:
j3
Date:
Thu Mar 19 22:02:40 2015 +0000
Parent:
0:3c97a1a20098
Commit message:
updated lib

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
max14661.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 3c97a1a20098 -r a06b939860a6 main.cpp
--- a/main.cpp	Fri Mar 13 23:51:04 2015 +0000
+++ b/main.cpp	Thu Mar 19 22:02:40 2015 +0000
@@ -39,13 +39,13 @@
 #include "max14661.h"
 
 
-Max14661 mux(D14, D15, MAX14661_I2C_ADRS0);
+Max14661 mux(D14, D15, Max14661::MAX14661_I2C_ADRS0);
 
 
 int main(void)
 {
     uint16_t bankA = 0;
-    uint16_t bankB = SW03;
+    uint16_t bankB = mux.SW03;
     uint8_t data[4];
     
     printf("\r\nMAX14661 Library Demo\r\n");
@@ -59,7 +59,7 @@
     }
     printf("\r\n");
     
-    mux.wrt_cmd_registers(DISABLE_BANK, DISABLE_BANK);
+    mux.wrt_cmd_registers(mux.DISABLE_BANK, mux.DISABLE_BANK);
     
     mux.rd_dir_registers(data);
     for(uint8_t idx = 0; idx < 4; idx++)
diff -r 3c97a1a20098 -r a06b939860a6 max14661.lib
--- a/max14661.lib	Fri Mar 13 23:51:04 2015 +0000
+++ b/max14661.lib	Thu Mar 19 22:02:40 2015 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/Maxim-Integrated/code/max14661/#44257d87fa9e
+http://developer.mbed.org/teams/Maxim-Integrated/code/max14661/#27cfbbce3094