Skip to content

Instantly share code, notes, and snippets.

@yashi
Created September 19, 2021 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yashi/b8e5248c2f439797314c9e9e82e47cac to your computer and use it in GitHub Desktop.
Save yashi/b8e5248c2f439797314c9e9e82e47cac to your computer and use it in GitHub Desktop.
#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