summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-05-06 07:55:12 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-05-06 07:55:12 +0800
commitd3949ef1b98d6ef2a135d9b31b26d86314acce60 (patch)
treebc6cefd88c7545c509c6837ca8a3e199260e217c /main.c
parent52080fed19d6cbc2461e3c74d63f4408ea70b590 (diff)
downloadavr-fpm-drivers-d3949ef1b98d6ef2a135d9b31b26d86314acce60.tar.gz
LED ctrl functions.
Diffstat (limited to 'main.c')
-rw-r--r--main.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/main.c b/main.c
index a7d9df2..6784d44 100644
--- a/main.c
+++ b/main.c
@@ -1,12 +1,25 @@
+#include <util/delay.h>
+
#include "r503.h"
int main(void)
{
- if (fpm_init()) {
- }
-
- while (1)
+ fpm_init();
+
+ for (;;)
{
+ fpm_led_on(RED);
+ _delay_ms(500);
+ fpm_led_off();
+ _delay_ms(500);
+ fpm_led_on(BLUE);
+ _delay_ms(500);
+ fpm_led_off();
+ _delay_ms(500);
+ fpm_led_on(PURPLE);
+ _delay_ms(500);
+ fpm_led_off();
+ _delay_ms(500);
}
return 0;