arduino:4ak18
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| arduino:4ak18 [2019/10/08 23:38] – aistis | arduino: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: | ||
| {{: | {{: | ||
| + | |||
| + | <code c> | ||
| + | void setup() { | ||
| + | // Setup timer and attach timer to a led pin | ||
| + | ledcSetup(0, | ||
| + | ledcAttachPin(12, | ||
| + | } | ||
| + | |||
| + | static double c = 0.1; | ||
| + | |||
| + | void loop() { | ||
| + | | ||
| + | ledcWrite(0, | ||
| + | c = c * 1.01; | ||
| + | if (c > 8192) c = 0.1; | ||
| + | delay(1); | ||
| + | } | ||
| + | </ | ||
arduino/4ak18.1570567090.txt.gz · Last modified: by aistis
