a

Dependencies:   mbed

Revision:
11:c1a22e2e3534
Parent:
10:7c73e1577742
Child:
12:7e33e400a48d
--- a/main.h	Fri Aug 30 07:47:41 2019 +0000
+++ b/main.h	Wed Sep 04 05:31:40 2019 +0000
@@ -36,8 +36,8 @@
 //#define PALETTE(color)\
 //for(int s=0; s<3; s++) LED[s]=color&1<<s
 #define PALETTE(color)\
-for(int s=0; s<3; s++)\
-i2c.Out_Set(Out_Data, s+5, color&1<<s);\
+for(int s=0; s<2; s++)\
+i2c.Out_Set(Out_Data, s+6, color&1<<s);\
 i2c.Out(Out_Data,8)
 
 /* 型定義 --------------------------------------------------------------------*/
@@ -77,13 +77,17 @@
 
 typedef enum {
     BLACK,
-    GREEN,
+//    GREEN,
     RED,
-    YELLOW,
+//    YELLOW,
     BLUE,
-    CYAN,
+//    CYAN,
     MAGENTA,
-    WHITE,
+//    WHITE,
+
+
+
+
 
     COLOR_MAX
 
@@ -116,9 +120,9 @@
     {0,2,0},        // タオルの先
     {0,3,0},        // タオル展開
     {1,0,0},        // タオルの中央
-    {1,1,0},        // 赤
-    {1,2,0},        // 青
-    {1,3,0},        // 緑
+    {1,1,0},        // 全体
+    {1,2,0},        // 赤
+    {1,3,0},        // 青
 };
 /* 変数宣言 ------------------------------------------------------------------*/