Adapted example to new shortened function names
This commit is contained in:
Submodule inout/inout updated: a69465fca0...42bc1147b8
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) by BlackMark 2015-2018
|
* Copyright (c) by BlackMark 2015-2018
|
||||||
* Date 26/04/2018
|
* Date 26/04/2018
|
||||||
* Version 1.4
|
* Version 1.5
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "clock.h"
|
#include "clock.h"
|
||||||
@@ -9,14 +9,14 @@
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
InOutPin<InOut::Pin::B5>::setDirection( InOut::Dir::OUT );
|
InOutPin<InOut::Pin::B5>::direction( InOut::Dir::OUT );
|
||||||
InOutPin<InOut::Pin::B5>::write( true );
|
InOutPin<InOut::Pin::B5>::write( true );
|
||||||
_delay_ms( 3000 );
|
_delay_ms( 3000 );
|
||||||
InOutPin<InOut::Pin::B5>::write( false );
|
InOutPin<InOut::Pin::B5>::write( false );
|
||||||
_delay_ms( 3000 );
|
_delay_ms( 3000 );
|
||||||
|
|
||||||
InOutPin<InOut::Pin::B5> cLED;
|
InOutPin<InOut::Pin::B5> cLED;
|
||||||
cLED.setDirection( InOut::Dir::OUT );
|
cLED.direction( InOut::Dir::OUT );
|
||||||
cLED.write( false );
|
cLED.write( false );
|
||||||
|
|
||||||
while( true )
|
while( true )
|
||||||
|
|||||||
Reference in New Issue
Block a user