Xiaohai Li
/
RPi_MOT_HAT
Raspberry Pi MOT HAT Based on STM32F030R8. The clock needs to be changed to 8MHz after export.
AplicationLayer/SelfTest.cpp
- Committer:
- nightseas
- Date:
- 2015-08-09
- Revision:
- 0:633cef71e6ba
- Child:
- 1:a6bcf44b90df
File content as of revision 0:633cef71e6ba:
#include "SysConfig.h" void SelfTest(void) { //Breath LED int i, j; led_mb = 0; while(1) { for(j=0;j<=100;j++) { for(i=0;i<=100;i++) { led_mb = 1; wait_us(j); led_mb = 0; wait_us(100-j); } } for(j=100;j>=0;j--) { for(i=0;i<=100;i++) { led_mb = 1; wait_us(j); led_mb = 0; wait_us(100-j); } } wait_ms(200); } }