Utilizando a Nucleo F103RB com um módulo LCD e um Joystick para interface

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
kaiquedog
Date:
Wed Aug 25 13:02:16 2021 +0000
Parent:
9:891ffa97d8fb
Commit message:
Finalizado

Changed in this revision

Joystick.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Joystick.cpp	Tue Aug 17 13:45:36 2021 +0000
+++ b/Joystick.cpp	Wed Aug 25 13:02:16 2021 +0000
@@ -54,8 +54,8 @@
     
     switch(Switch)
     {
-        case 1: a = 1; break; // Botão desapertado
-        case 0: a= 0; break;  // Botão apertado
+        case 1: a = 0; break; // Botão desapertado
+        case 0: a= 1; break;  // Botão apertado
     }
     
     return a;