1. Joseph Chiocchi
  2. yrainbowduino

Commits

Joseph Chiocchi  committed 90880c0

much faster refresh rate.

color stays when you press the button.

  • Participants
  • Parent commits 8cb340f
  • Branches newpixels

Comments (0)

Files changed (1)

File yrainbow_master/yrainbow_master.ino

View file
  • Ignore whitespace
 
 
   buttonState = digitalRead(buttonPin);
+  if (buttonState == HIGH){
+    sendCMD(0x10, CMD_CLEAR_PAPER);
+     r = random(0xF);
+     g = random(0xF/2);
+     b = random(0xF/3);
+//     b=0x0;
 
+  } else{
+     r = r; g=g; b=b; }
 
+
+
+    sendCMD(0x10, CMD_CLEAR_BUF, r, g, b);
+    sendCMD(0x10, CMD_SWAP_BUF);
 //  if (buttonState != HIGH){
 //
 //