//digitalWrite const int outPin = 13; void setup() { pinMode(outPin, OUTPUT); } void loop() { int i; for (i=0; i <= 20; i++) { digitalWrite(outPin, HIGH); digitalWrite(outPin, LOW); } }解説:
//tone void setup() { tone(13, 50000); } void loop() { }解説:
No | Time/div | Δt |
1 | 500us | 1us |
2 | 200us | 1us |
3 | 100us | 1us |
4 | 50us | 1us |
5 | 20us | 0.25us |
6 | 10us | 0.125us |
7 | 5us | 0.0625us |
8 | 2us | 0.02us |
9 | 1us | 0.01us |