Library for MAX5387 dual channel digi pot

Dependents:   MAX14871_Shield

Files at this revision

API Documentation at this revision

Comitter:
j3
Date:
Thu Jul 23 21:25:38 2015 +0000
Parent:
1:f50b0fb1f7f6
Child:
3:25deebfe51ba
Commit message:
added () around defines

Changed in this revision

max5387.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/max5387.cpp	Mon Jul 20 18:35:30 2015 +0000
+++ b/max5387.cpp	Thu Jul 23 21:25:38 2015 +0000
@@ -46,9 +46,9 @@
 #include "max5387.h"
 
 
-#define MAX5387_CMD_A  0x11
-#define MAX5387_CMD_B  0x12
-#define MAX5387_CMD_AB 0x13
+#define MAX5387_CMD_A  (0x11)
+#define MAX5387_CMD_B  (0x12)
+#define MAX5387_CMD_AB (0x13)
 
 
 //*********************************************************************