We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 211b62a + f1d45a1 commit c44e516Copy full SHA for c44e516
bsp/bluetrum/ab32vg1-ab-prougen/applications/main.c
@@ -19,22 +19,16 @@
19
20
int main(void)
21
{
22
- uint32_t cnt = 0;
23
uint8_t pin = rt_pin_get("PE.1");
24
25
rt_pin_mode(pin, PIN_MODE_OUTPUT);
26
rt_kprintf("Hello, world\n");
27
28
while (1)
29
30
- if (cnt % 2 == 0) {
31
- rt_pin_write(pin, PIN_LOW);
32
- } else {
33
- rt_pin_write(pin, PIN_HIGH);
34
- }
35
- cnt++;
36
- rt_thread_mdelay(1000);
+ rt_pin_write(pin, PIN_LOW);
+ rt_thread_mdelay(500);
+ rt_pin_write(pin, PIN_HIGH);
37
}
38
-
39
- return 0;
40
0 commit comments