en-us_commands:reference:ianalogwriteinit
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en-us_commands:reference:ianalogwriteinit [2026/09/08 00:53] – 바깥 편집 127.0.0.1 | en-us_commands:reference:ianalogwriteinit [2026/09/14 20:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| ===== Example ===== | ===== Example ===== | ||
| + | |||
| + | This example uses MPAINO-8A8R(T) with a Y output module and **Analog Output Module → Y** selected. It sets CH0 to a 0–1000 range and outputs its midpoint. | ||
| <code cpp> | <code cpp> | ||
| void setup() { | void setup() { | ||
| - | | + | IanalogWriteInit(0, |
| - | | + | |
| } | } | ||
| void loop() { | void loop() { | ||
| - | | + | IanalogWrite(0, |
| - | | + | delay(500); |
| - | analogWrite2(1, | + | |
| - | delay(20); | + | |
| } | } | ||
| </ | </ | ||
en-us_commands/reference/ianalogwriteinit.1788796397.txt.gz · Last modified: by 127.0.0.1
