public void draw() {  
		if ((falseCounter+okCount)>2000) return;
		
		for (int i=0; i<64;i++) {
			frame1[i]=x;//(int)((x&255)<<16 | (x%255)<<8 | (x&255));
		}
		for (int i=0; i<x/4;i++) {
			frame1[i] = 0xffffff;
		}
		x+=4;
		if (x>255) x=4;
		
		long l1 = System.currentTimeMillis();
		boolean result5 = r.sendRgbFrame((byte)5, frame1);
		long l2 = System.currentTimeMillis();
		boolean result6 = r.sendRgbFrame((byte)6, frame1);

		l1=l2-l1;
		l2=System.currentTimeMillis()-l2;
		
		if (!result5) falseCounter++; else okCount++;
		if (!result6) falseCounter++; else okCount++;
		
		if (l1>35) muchTime++;
		if (l2>35) muchTime++;
		
		totalTime+=l1;
		totalTime+=l2;
		
		float rate = (100.f/(float)(falseCounter+okCount))*falseCounter;
		System.out.println("6:"+result6+", "+l1+"ms, n5:"+result5+" "+l2+"ms, false rate: "+rate+", long: "+muchTime+", totalTime: "+totalTime);
		
		if (r.getArduinoErrorCounter()!=0) {
	    long lastHeatBeatTs = r.getArduinoHeartbeat();
	    println(
	        "updated: "+new Date(lastHeatBeatTs).toGMTString()+
	        " Serial Buffer Size: "+r.getArduinoBufferSize()+
	        " last error: "+r.getArduinoErrorCounter()
	    );
		}
	    
	}