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.
1 parent 09d24a6 commit 8ec87a8Copy full SHA for 8ec87a8
bsp/nxp/mcx/mcxa/frdm-mcxa156/applications/main.c
@@ -29,10 +29,15 @@ int main(void)
29
rt_kprintf("using gcc, version: %d.%d\n", __GNUC__, __GNUC_MINOR__);
30
#endif
31
32
+ rt_kprintf("MCXA156 HelloWorld\r\n");
33
+ rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT); /* Set GPIO as Output */
34
+
35
while (1)
36
{
- rt_thread_mdelay(1000); /* Delay 1S */
- rt_kprintf("MCXA156 HelloWorld\r\n");
37
+ rt_pin_write(LED_PIN, PIN_HIGH); /* Set GPIO output 1 */
38
+ rt_thread_mdelay(500); /* Delay 500mS */
39
+ rt_pin_write(LED_PIN, PIN_LOW); /* Set GPIO output 0 */
40
41
}
42
43
0 commit comments