Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: DigitalInのコンストラクタに内部PullUp, PullDownを指定可能にする #154

Open
yutotnh opened this issue Jan 27, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@yutotnh
Copy link
Owner

yutotnh commented Jan 27, 2023

なぜ機能が欲しいのか

現在、利用している回路のDIPスイッチ部分が、内部PullDown前提の回路となっている。
Mbed/Arduinoではピンの内部プルアップ抵抗、内部プルダウン抵抗を指定するオプションがあるが、 spirit::DigitalIn にはそれがない。

そのために、不具合が発生しているため、spirit::DigitalIn のコンストラクタで内部プルアップ/ダウンを指定するようにしたい。

提案の説明

現状の spirit::DigitalOut(PinName pin) から spirit::DigitalOut(PinName pin, PullMode mode) のような形にする。

その他

@yutotnh yutotnh added the enhancement New feature or request label Jan 27, 2023
@yutotnh yutotnh self-assigned this Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant