Modified snippets
All checks were successful
Build & Publish / build (push) Successful in 9m5s

This commit is contained in:
2023-08-03 13:05:59 +02:00
parent 22d036515c
commit 555419f701
4 changed files with 48 additions and 28 deletions

View File

@@ -1,3 +1,12 @@
/* --------- */
/* LED */
/* --------- */
/* Imports / Declarations */
#include <zephyr/drivers/gpio.h>
#define LED0_NODE DT_ALIAS(led0)
/* Functions */
int blink_led(void) {
int ret;
@@ -18,4 +27,15 @@ int blink_led(void) {
k_msleep(1000);
}
return 0;
}
}
/*
Example:
int main(void)
{
blink_led();
return 0;
}
*/

View File

@@ -1,2 +0,0 @@
#include <zephyr/drivers/gpio.h>
#define LED0_NODE DT_ALIAS(led0)