3
3

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 5 years have passed since last update.

ESP8266 > 内部プルダウン / プルアップ > INPUT_PULLUPは動く / INPUT_PULLDOWNは動かない

Last updated at Posted at 2015-12-20

設定によって有効になる(と思われる)内部プルアップ、プルダウン抵抗について。

pinMode ( sensor1, INPUT_PULLUP );
は動くが
pinMode ( sensor1, INPUT_PULLDOWN );
はうまく動かないようだ。

If I set them to INPUT, then the pin behaves like a floating input. Otherwise, INPUT_PULLDOWN and INPUT_PULLUP seem to behave exactly the same.

...

Links2004 commented on 28Jun
espressif write:
There are no pull-down functions on GPIO pad now, so we should never use these registers.
http://bbs.espressif.com/viewtopic.php?f=5&t=481

上記2つ目のリンクの元から抜粋

Note:
There are no pull-down functions on GPIO pad now, so we should never use these registers.
Add external resistance to pulldown the pin.

「プルダウンの場合は、外部抵抗を入れること」とのこと。

3
3
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
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?