User Tools

Site Tools


arduino:4ak18

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
arduino:4ak18 [2019/10/08 23:38] – aistisarduino:4ak18 [2020/01/13 23:47] (current) – aistis
Line 1: Line 1:
-4ak18+4ak18 mosfet mos fet array
  
 MOSFET array MOSFET array
Line 7: Line 7:
  
 {{:arduino:pasted:20191008-233808.png}} {{:arduino:pasted:20191008-233808.png}}
 +
 +<code c>
 +void setup() {
 +  // Setup timer and attach timer to a led pin
 +  ledcSetup(0, 8000, 13);
 +  ledcAttachPin(12, 0);
 +}
 +
 +static double c = 0.1;
 +
 +void loop() {
 +  
 +  ledcWrite(0, c);
 +  c = c * 1.01;
 +  if (c > 8192) c = 0.1;
 +  delay(1);
 +}
 +</code>
arduino/4ak18.1570567090.txt.gz · Last modified: by aistis