2016-02-25 21:48:49 +01:00
|
|
|
/*
|
2018-04-26 13:45:23 +02:00
|
|
|
* Copyright (c) by BlackMark 2015-2018
|
|
|
|
* Date 26/04/2018
|
|
|
|
* Version 1.4
|
2016-02-25 21:48:49 +01:00
|
|
|
*/
|
|
|
|
|
2016-05-24 19:40:08 +02:00
|
|
|
#include "clock.h"
|
2018-04-26 13:45:23 +02:00
|
|
|
#include "inout/inout.h"
|
2016-02-25 21:48:49 +01:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2018-04-26 13:45:23 +02:00
|
|
|
InOutPin cLED( InOut::Pin::B5 );
|
|
|
|
cLED.setDirection( InOut::Dir::OUT );
|
2016-02-25 22:20:24 +01:00
|
|
|
cLED.write( false );
|
2016-02-25 21:48:49 +01:00
|
|
|
|
|
|
|
while( true )
|
|
|
|
{
|
2016-02-25 22:20:24 +01:00
|
|
|
for( uint8_t i = 0; i < 3; ++i )
|
|
|
|
{
|
|
|
|
cLED.write( true );
|
|
|
|
_delay_ms( 100 );
|
|
|
|
cLED.write( false );
|
|
|
|
_delay_ms( 100 );
|
|
|
|
}
|
|
|
|
|
|
|
|
_delay_ms( 300 );
|
|
|
|
|
|
|
|
for( uint8_t i = 0; i < 3; ++i )
|
|
|
|
{
|
|
|
|
cLED.write( true );
|
|
|
|
_delay_ms( 300 );
|
|
|
|
cLED.write( false );
|
|
|
|
_delay_ms( 300 );
|
|
|
|
}
|
|
|
|
|
|
|
|
_delay_ms( 100 );
|
|
|
|
|
|
|
|
for( uint8_t i = 0; i < 3; ++i )
|
|
|
|
{
|
|
|
|
cLED.write( true );
|
|
|
|
_delay_ms( 100 );
|
|
|
|
cLED.write( false );
|
|
|
|
_delay_ms( 100 );
|
|
|
|
}
|
|
|
|
|
2016-02-25 21:48:49 +01:00
|
|
|
_delay_ms( 1000 );
|
|
|
|
}
|
2016-05-24 19:40:08 +02:00
|
|
|
|
2016-02-25 21:48:49 +01:00
|
|
|
return 0;
|
2016-05-24 20:13:39 +02:00
|
|
|
}
|