2018-12-25 15:59:44 +08:00
|
|
|
/*
|
2021-03-14 15:33:55 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2018-12-25 15:59:44 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2018-12-18 zylx first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
#include <rtdevice.h>
|
|
|
|
#include <board.h>
|
|
|
|
#include <drv_ext_io.h>
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
HC574_SetPin(LED1,0);
|
2021-03-14 15:33:55 +08:00
|
|
|
HC574_SetPin(LED2,0);
|
2018-12-25 15:59:44 +08:00
|
|
|
HC574_SetPin(LED3,0);
|
|
|
|
HC574_SetPin(LED4,0);
|
2021-03-14 15:33:55 +08:00
|
|
|
|
2021-03-28 19:36:32 +08:00
|
|
|
while (1)
|
2018-12-25 15:59:44 +08:00
|
|
|
{
|
|
|
|
HC574_SetPin(LED1,1);
|
|
|
|
rt_thread_mdelay(500);
|
|
|
|
HC574_SetPin(LED1,0);
|
|
|
|
rt_thread_mdelay(500);
|
|
|
|
}
|
|
|
|
}
|