Created
September 19, 2021 20:08
-
-
Save yashi/b8e5248c2f439797314c9e9e82e47cac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <drivers/led.h> | |
void main(void) | |
{ | |
const struct device *led = device_get_binding("SC LED"); | |
while (1) { | |
led_on(led, 1); | |
k_msleep(1000); | |
led_off(led, 1); | |
k_msleep(1000); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment