2 PWM demo with a logical analyzer
4 Connect pin ~11 to a logic analyzer and a multimeter
5 and witness the power of the built-in PWM generator.
7 BTW: Logic comes from: http://downloads.saleae.com/betas/1.1.34/Logic+1.1.34+(64-bit).zip
11 int pausa = 3000; // or 20 when sampling
22 // Static test value, comment exit() or ad a delay()
23 analogWrite(led, 1) ; // No light, just a bit
25 analogWrite(led, 63) ; // 1/4
27 analogWrite(led, 127) ; // 1/2
29 analogWrite(led, 191) ; // 3/4
31 analogWrite(led, 254) ; // Full light
35 for (int c = 0; c < 255 ; c++) {