[{"data":1,"prerenderedAt":28},["ShallowReactive",2],{"example-page-arduino-uno":3},{"id":4,"info":5,"parts":6,"wired":18,"refs":19,"nets":20,"moreNets":21,"code":22},"arduino-uno","Arduino Uno (ATmega328P, 16 MHz) with real firmware from an Arduino sketch. Potentiometer RV1 on A0 sets the brightness of the LED on D9 (PWM from Timer1); the sketch writes the reading over Serial (console in the inspector). Change the sketch in the Code view and click \"Compile\": the server builds it with arduino-cli. Turn the potentiometer during the simulation.",[7,10,12,14,16],[8,9],"arduino_uno",1,[11,9],"led",[13,9],"pot",[15,9],"resistor",[17,9],"vdc",true,{},[],0,{"file":23,"lang":24,"text":25,"lines":26,"more":27},"sketch.ino","cpp","\u002F\u002F analogRead(A0) -> analogWrite(9) (Timer1 PWM) and Serial report every 100 ms\nvoid setup() { Serial.begin(115200); pinMode(9, OUTPUT); }\nvoid loop() {\n  int v = analogRead(A0);\n  analogWrite(9, v \u002F 4);\n  analogWrite(5, 64);                 \u002F\u002F Timer0 fast PWM, 25 %\n  analogWrite(3, 191);                \u002F\u002F Timer2 phase-correct PWM, 75 %\n  Serial.print(F(\"A0=\")); Serial.println(v);\n  delay(100);\n}",10,false,1796304400839]