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: UIT_DigitalOutEx mbed
Diff: main.cpp
- Revision:
- 3:83a5ca378615
- Parent:
- 2:21f669fe4965
- Child:
- 4:faf3b8ea0ced
--- a/main.cpp Fri Sep 04 12:03:22 2015 +0000 +++ b/main.cpp Fri Sep 30 12:39:42 2016 +0000 @@ -2,12 +2,12 @@ // DigitalOutEx クラスの使用例(赤色 LED をオープンドレインで駆動する) // // LED のアノード側: 5 V -// LED のカソード側: D8 +// LED のカソード側: D8(または他の出力ポート) // // 初期状態はオープンドレインに設定するが,count > 10 に // なったらプッシュプル出力に設定しなおす // -// 2015/09/04, Copyright (c) 2015 MIKAMI, Naoki +// 2016/09/30, Copyright (c) 2016 MIKAMI, Naoki //------------------------------------------------------------- #include "DigitalOutEx.hpp" @@ -18,7 +18,10 @@ //DigitalOutEx ledR_(D8, DigitalOutEx::PushPull); // PA_9 //DigitalOutEx ledR_(D6); // PB_10 //DigitalOutEx ledR_(A4, 1); // PC_1 -//DigitalOutEx ledR_(PD_2); // NG +//DigitalOutEx ledR_(PD_2); // OK +//DigitalOutEx ledR_(PE_14); // OK, F746ZG +//DigitalOutEx ledR_(PF_9); // OK, F746ZG +//DigitalOutEx ledR_(PG_0); // OK, F746ZG int main() { @@ -30,4 +33,3 @@ if (++count > 10) ledR_.SetPushPull(); // プッシュプル出力に設定 } } -