From 4aa338288e3fb331198aee9ff14d67aa8bbb186e Mon Sep 17 00:00:00 2001
From: ajk1e20 <ajk1e20@soton.ac.uk>
Date: Thu, 12 May 2022 20:09:45 +0000
Subject: [PATCH] Upload New File

---
 blink/blink.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 blink/blink.c

diff --git a/blink/blink.c b/blink/blink.c
new file mode 100644
index 0000000..0368d8e
--- /dev/null
+++ b/blink/blink.c
@@ -0,0 +1,23 @@
+/**
+ * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include "pico/stdlib.h"
+
+int main() {
+#ifndef PICO_DEFAULT_LED_PIN
+#warning blink example requires a board with a regular LED
+#else
+    const uint LED_PIN = PICO_DEFAULT_LED_PIN;
+    gpio_init(LED_PIN);
+    gpio_set_dir(LED_PIN, GPIO_OUT);
+    while (true) {
+        gpio_put(LED_PIN, 1);
+        sleep_ms(1000);
+        gpio_put(LED_PIN, 0);
+        sleep_ms(1000);
+    }
+#endif
+}
-- 
GitLab