From 08b69f70d71f9fb5b407e6a424d0d93b58c75fd8 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Thu, 26 Apr 2018 15:24:10 +0200 Subject: [PATCH] Adapted example to new interface --- inout/inout | 2 +- inout/main.cpp | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/inout/inout b/inout/inout index 093c0a6..a69465f 160000 --- a/inout/inout +++ b/inout/inout @@ -1 +1 @@ -Subproject commit 093c0a6a025a5d39b9f236a03a290a374e3570e7 +Subproject commit a69465fca084be51a9486a2439c3b6d596cfb14a diff --git a/inout/main.cpp b/inout/main.cpp index d469a75..3dfcdee 100644 --- a/inout/main.cpp +++ b/inout/main.cpp @@ -9,7 +9,13 @@ int main() { - InOutPin cLED( InOut::Pin::B5 ); + InOutPin::setDirection( InOut::Dir::OUT ); + InOutPin::write( true ); + _delay_ms( 3000 ); + InOutPin::write( false ); + _delay_ms( 3000 ); + + InOutPin cLED; cLED.setDirection( InOut::Dir::OUT ); cLED.write( false );