Adapted example to new interface
This commit is contained in:
Submodule inout/inout updated: 093c0a6a02...a69465fca0
@@ -9,7 +9,13 @@
|
|||||||
|
|
||||||
int main()
|
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.setDirection( InOut::Dir::OUT );
|
||||||
cLED.write( false );
|
cLED.write( false );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user