解决 LED0 OR LED2

This commit is contained in:
WuKaiLi 2021-09-05 21:23:21 +08:00
parent 3ac58b8577
commit c55c964ba4
1 changed files with 2 additions and 2 deletions

View File

@ -12,12 +12,12 @@
#include <rtdevice.h> #include <rtdevice.h>
#include <board.h> #include <board.h>
/* defined the LED0 pin: PC0 */ /* defined the LED2 pin: PE6 */
#define LED2_PIN GET_PIN(E, 6) #define LED2_PIN GET_PIN(E, 6)
int main(void) int main(void)
{ {
/* set LED0 pin mode to output */ /* set LED2 pin mode to output */
rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT); rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
while (1) while (1)