   while(1)
   {
     sendImage(image);
-    if ( a++ > 20 ) // shift in new line
+    if ( a++ > SPEED ) // shift in new line
     {  
       a=0;      
       now = analogRead(AIN)/2;

**/
void setup()
{
  pinMode(BUZ1, OUTPUT);
  pinMode(BUZ2, OUTPUT); // note: also switch
  pinMode(CLOCK, OUTPUT);

// Sinewave example
void sineWave()
{
  static const unsigned char wave[] = {4,5,6,6,7,7,7,6,6,5,4,3,2,1,1,0,0,0,1,1,2,3,4};
  unsigned char j = 0, q;
  for(int i=0; i<60;i++)
  {
    j = i % sizeof(wave);
    tone(600+200*wave[j]); 
    shiftLeft(1 << wave[j]);
    for(q=0; q<2; q++) sendImage(image);
  }
}

