From b2fb9fccfe36ce50b82ec9862a031669c3d3b003 Mon Sep 17 00:00:00 2001 From: Samuel Date: Sun, 4 Jan 2026 15:55:43 +0100 Subject: [PATCH] =?UTF-8?q?Fin=20s=C3=A9ance=20programmaiton=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index fa2f444..40c7efc 100644 --- a/main.c +++ b/main.c @@ -11,8 +11,24 @@ void main(void) { stdio_init_all(); - gpio_init(25); + // Initialisation de la led verte + gpio_init(18); + gpio_set_dir(18, 1); + + // Initialisation de la led rouge + gpio_init(13); + gpio_set_dir(13, 1); + + // Allume les LED + gpio_put(18, 1); + gpio_put(13, 1); while(1){ + sleep_ms(500); + gpio_put(18, 1); + gpio_put(13, 1); + sleep_ms(500); + gpio_put(18, 0); + gpio_put(13, 0); } -} +} \ No newline at end of file