样机测试
很高兴有机会试用此开发板,接下来用此开发板制作一个机器人游戏主控的项目。
配置工具:
源代码:
int v;
R_BSP_PinAccessEnable();
while(1) {
for ( v = 60; v > 40 ; v-- )
{
R_BSP_PinWrite(BSP_IO_PORT_01_PIN_13 , BSP_IO_LEVEL_HIGH);
R_BSP_SoftwareDelay(2, BSP_DELAY_UNITS_MILLISECONDS);
R_BSP_PinWrite( BSP_IO_PORT_01_PIN_13 , BSP_IO_LEVEL_LOW);
R_BSP_SoftwareDelay(18, BSP_DELAY_UNITS_MILLISECONDS);
}
for ( v = 60; v > 40 ; v-- )
{
R_BSP_PinWrite(BSP_IO_PORT_01_PIN_13 , BSP_IO_LEVEL_HIGH);
R_BSP_SoftwareDelay(1, BSP_DELAY_UNITS_MILLISECONDS);
R_BSP_PinWrite( BSP_IO_PORT_01_PIN_13 , BSP_IO_LEVEL_LOW);
R_BSP_SoftwareDelay(19, BSP_DELAY_UNITS_MILLISECONDS);
}
for ( v = 60; v > 40 ; v-- )
{
R_BSP_PinWrite(BSP_IO_PORT_04_PIN_02 , BSP_IO_LEVEL_HIGH);
R_BSP_SoftwareDelay(2, BSP_DELAY_UNITS_MILLISECONDS);
R_BSP_PinWrite( BSP_IO_PORT_04_PIN_02 , BSP_IO_LEVEL_LOW);
R_BSP_SoftwareDelay(18, BSP_DELAY_UNITS_MILLISECONDS);
}
for ( v = 60; v > 40 ; v-- )
{
R_BSP_PinWrite(BSP_IO_PORT_04_PIN_02 , BSP_IO_LEVEL_HIGH);
R_BSP_SoftwareDelay(1, BSP_DELAY_UNITS_MILLISECONDS);
R_BSP_PinWrite( BSP_IO_PORT_04_PIN_02 , BSP_IO_LEVEL_LOW);
R_BSP_SoftwareDelay(19, BSP_DELAY_UNITS_MILLISECONDS);
}
}
本项目还会继续更新,谢谢!
基础功能设计
|