Files at this revision

API Documentation at this revision

Comitter:
jp
Date:
Sun Feb 13 02:18:50 2011 +0000
Parent:
2:98b11b7dd7b2
Commit message:

Changed in this revision

colors.h Show annotated file Show diff for this revision Revisions of this file
--- a/colors.h	Sun Feb 13 02:12:32 2011 +0000
+++ b/colors.h	Sun Feb 13 02:18:50 2011 +0000
@@ -314,8 +314,11 @@
 #define COLOR_INIT()     LPC_GPIO0->FIODIR |= COLOR_MASK;
 
 #define COLOR_SET(value) do {                                 \
-                            LPC_GPIO0->FIOMASK = ~COLOR_MASK; \
-                            LPC_GPIO0->FIOPIN = COLOR_VAR_MASK[value];      \
+                              LPC_GPIO0->FIOCLR = COLOR_MASK;     \
+                              LPC_GPIO0->FIOSET = COLOR_VAR_MASK[value];     \
+
+//                            LPC_GPIO0->FIOMASK = ~COLOR_MASK; \
+//                            LPC_GPIO0->FIOPIN = COLOR_VAR_MASK[value];      \
                         } while(0)
 
 #endif
\ No newline at end of file