TUKS MCU Introductory course / TUKS-COURSE-2-LED

Files at this revision

API Documentation at this revision

Comitter:
elmot
Date:
Sat Feb 25 08:59:21 2017 +0000
Parent:
4:08c180ce828d
Commit message:
No comment

Changed in this revision

main.c Show annotated file Show diff for this revision Revisions of this file
--- a/main.c	Sat Feb 25 08:30:11 2017 +0000
+++ b/main.c	Sat Feb 25 08:59:21 2017 +0000
@@ -48,11 +48,6 @@
     HAL_Delay(300);
 
     while (1) {
-        GPIO_PinState state = HAL_GPIO_ReadPin(UP_JOY_GPIO_PORT,UP_JOY_PIN);
-        HAL_GPIO_WritePin(LED4_GPIO_PORT, LED4_PIN, state);
-
-        state = HAL_GPIO_ReadPin(DOWN_JOY_GPIO_PORT,DOWN_JOY_PIN);
-        HAL_GPIO_WritePin(LED5_GPIO_PORT, LED5_PIN, state);
     }
 }