Adapted example to new interface

This commit is contained in:
BlackMark 2018-04-26 15:24:10 +02:00
parent b438aac91d
commit 08b69f70d7
2 changed files with 8 additions and 2 deletions

@ -1 +1 @@
Subproject commit 093c0a6a025a5d39b9f236a03a290a374e3570e7
Subproject commit a69465fca084be51a9486a2439c3b6d596cfb14a

View File

@ -9,7 +9,13 @@
int main()
{
InOutPin cLED( InOut::Pin::B5 );
InOutPin<InOut::Pin::B5>::setDirection( InOut::Dir::OUT );
InOutPin<InOut::Pin::B5>::write( true );
_delay_ms( 3000 );
InOutPin<InOut::Pin::B5>::write( false );
_delay_ms( 3000 );
InOutPin<InOut::Pin::B5> cLED;
cLED.setDirection( InOut::Dir::OUT );
cLED.write( false );