Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Homepage
中身のちょっとした解説です。
DigitalIn Limits[] = { DigitalIn(A2), DigitalIn(A3), DigitalIn(D2), DigitalIn(D3) };
一つ目、DigitalIn,DigitalOut,etc...は配列のように扱えます。
Limits[0].mode(PullUp); Limits[1].mode(PullUp); Limits[2].mode(PullUp); Limits[3].mode(PullUp);
二つ目、各ピンは PinName.mode(PullUp or PullDown);
という関数があり、マイコンボード上でPullUp,PullDownをしてくれます。 外部で抵抗付けなくいいから回路が簡単になるね!!!
終わり!閉廷!…以上!皆解散!