1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Arduino Blink Without Delay millis() で Overflowing は発生しない?

Last updated at Posted at 2020-12-17

#Blink Without Delay を使用している方へ

#オーバーフローが心配なので検証してみたけどエラーにはならない。

  int a = 100;
  unsigned long b = 4294967295; //unsigned long maximum value
  Serial.println(a - b);

#結果は、101になります。
#プログラム(Blink Without Delay)は正常に、動作すると思います。

#しかし、実際に50日以上で使用していません。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?