en-us_commands:reference:analogreadavgf
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en-us_commands:reference:analogreadavgf [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1 | en-us_commands:reference:analogreadavgf [2026/09/08 00:53] (current) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| <code cpp> | <code cpp> | ||
| - | float value = analogReadAvgf(0, | + | void setup() { |
| - | Serial.println(value, 2); | + | Serial.begin(115200); |
| + | } | ||
| + | |||
| + | void loop() { | ||
| + | int ai0 = analogRead(0); | ||
| + | int ai4 = analogRead(4); | ||
| + | int32_t avg0 = analogReadAvg(0, | ||
| + | float avg0f = analogReadAvgf(0, | ||
| + | |||
| + | Serial.print(" | ||
| + | | ||
| + | |||
| + | Serial.print(" | ||
| + | Serial.println(ai4); | ||
| + | |||
| + | Serial.print(" | ||
| + | Serial.println(avg0); | ||
| + | |||
| + | Serial.print(" | ||
| + | Serial.println(avg0f, 2); | ||
| + | |||
| + | delay(500); | ||
| + | } | ||
| </ | </ | ||
| Line 26: | Line 48: | ||
| * Increasing the sample count slows response and increases memory usage. | * Increasing the sample count slows response and increases memory usage. | ||
| * MPINO '' | * MPINO '' | ||
| + | |||
| + | ===== Built-in Commands in the Same Category ===== | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| [[: | [[: | ||
en-us_commands/reference/analogreadavgf.1788785565.txt.gz · Last modified: by 127.0.0.1
