Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Revision 1:f1b33b0074ad, committed 2020-05-30
- Comitter:
- michaelrodriguezg
- Date:
- Sat May 30 22:03:51 2020 +0000
- Parent:
- 0:fee2cdcf7318
- Commit message:
- Prueba_2
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat May 30 21:34:59 2020 +0000
+++ b/main.cpp Sat May 30 22:03:51 2020 +0000
@@ -1,17 +1,16 @@
#include "mbed.h"
#include "stdlib.h"
#include <Serial.h>
-Serial comu(PA_9,PC_7);//Tx/Rx -->nucleo-401RE
+Serial comu(PB_6,PB_7);//Tx/Rx -->nucleo-401RE
DigitalOut led1(LED1);
BusOut segmen(D11, D13, PC_3, D15,D14,D12,PC_2);//Modificar salidas para la 401RE
const char seg[16]={0X7E, 0X30, 0X6D, 0X79, 0X33, 0X5B, 0X5F, 0X71, 0X7F, 0X73, 0X77, 0X1F, 0X4E, 0X3D, 0X4F, 0X47}; //Display 7segmentos con codigo Hexadecimal
char numero=0;
//Codigo para la interrupcion
-InterruptIn button1(USER_BUTTON);
+InterruptIn button1(USER_BUTTON);//
volatile bool button1_pressed = false; // Used in the main loop
volatile bool button1_enabled = true; // Used for debouncing
Timeout button1_timeout; // Used for debouncing
-
// Enables button when bouncing is over
void button1_enabled_cb(void)
{