CONTROLA UN DISPLAY DE 7 SEGMENTOS 4 DIGITOS PARA IMPRIMIR UN ARREGLO DE CHARS CON LETRAS Y NUMERO YA SEAN MINUSCULAS O MAYUSCULAS
DISPLAY7SEG4DIG.h@0:1f635f86542a, 2019-05-27 (annotated)
- Committer:
- ArmandoOlvera
- Date:
- Mon May 27 04:29:03 2019 +0000
- Revision:
- 0:1f635f86542a
- Child:
- 1:a467832c08c3
/*; INSTITUTO POLITECNICO NACIONAL ; ; ESCUELA SUPERIOR DE INGENIERIA MECANICA Y ELECTRICA; ; -ESTA BIBLIOTECA FUE CREADA POR EL ; ; ING. ARMANDO OLVERA; ; */
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ArmandoOlvera | 0:1f635f86542a | 1 | /* |
ArmandoOlvera | 0:1f635f86542a | 2 | INSTITUTO POLITECNICO NACIONAL |
ArmandoOlvera | 0:1f635f86542a | 3 | |
ArmandoOlvera | 0:1f635f86542a | 4 | ESCUELA SUPERIOR DE INGENIERIA MECANICA Y ELECTRICA |
ArmandoOlvera | 0:1f635f86542a | 5 | |
ArmandoOlvera | 0:1f635f86542a | 6 | -ESTA BIBLIOTECA FUE CREADA POR EL |
ArmandoOlvera | 0:1f635f86542a | 7 | |
ArmandoOlvera | 0:1f635f86542a | 8 | ING. ARMANDO OLVERA |
ArmandoOlvera | 0:1f635f86542a | 9 | |
ArmandoOlvera | 0:1f635f86542a | 10 | */ |
ArmandoOlvera | 0:1f635f86542a | 11 | |
ArmandoOlvera | 0:1f635f86542a | 12 | |
ArmandoOlvera | 0:1f635f86542a | 13 | |
ArmandoOlvera | 0:1f635f86542a | 14 | |
ArmandoOlvera | 0:1f635f86542a | 15 | #ifndef MBED_DISPLAY7SEG4DIG_H |
ArmandoOlvera | 0:1f635f86542a | 16 | #define MBED_DISPLAY7SEG4DIG_H |
ArmandoOlvera | 0:1f635f86542a | 17 | |
ArmandoOlvera | 0:1f635f86542a | 18 | #include "mbed.h" |
ArmandoOlvera | 0:1f635f86542a | 19 | |
ArmandoOlvera | 0:1f635f86542a | 20 | |
ArmandoOlvera | 0:1f635f86542a | 21 | |
ArmandoOlvera | 0:1f635f86542a | 22 | |
ArmandoOlvera | 0:1f635f86542a | 23 | |
ArmandoOlvera | 0:1f635f86542a | 24 | |
ArmandoOlvera | 0:1f635f86542a | 25 | class seg4digmensaje{ |
ArmandoOlvera | 0:1f635f86542a | 26 | public: |
ArmandoOlvera | 0:1f635f86542a | 27 | seg4digmensaje(PinName a,PinName b,PinName c,PinName d,PinName e,PinName f,PinName g,PinName h,PinName q,PinName j,PinName k,PinName z);//constructor |
ArmandoOlvera | 0:1f635f86542a | 28 | //seg4digmensaje(double r, double i);//contructor extendido |
ArmandoOlvera | 0:1f635f86542a | 29 | ~seg4digmensaje(); // destructor |
ArmandoOlvera | 0:1f635f86542a | 30 | void borrar(); |
ArmandoOlvera | 0:1f635f86542a | 31 | void mensaje(char mensaje1[20]); |
ArmandoOlvera | 0:1f635f86542a | 32 | void reiniciar(); |
ArmandoOlvera | 0:1f635f86542a | 33 | // double parte_real(); |
ArmandoOlvera | 0:1f635f86542a | 34 | // double parte_imag(); |
ArmandoOlvera | 0:1f635f86542a | 35 | //void suma(const CComplejo& a, const CComplejo& b); |
ArmandoOlvera | 0:1f635f86542a | 36 | private: |
ArmandoOlvera | 0:1f635f86542a | 37 | uint8_t nuevomensaje[20]; |
ArmandoOlvera | 0:1f635f86542a | 38 | uint8_t mensaje1[20]; |
ArmandoOlvera | 0:1f635f86542a | 39 | int i; |
ArmandoOlvera | 0:1f635f86542a | 40 | |
ArmandoOlvera | 0:1f635f86542a | 41 | int bandera; |
ArmandoOlvera | 0:1f635f86542a | 42 | int u; |
ArmandoOlvera | 0:1f635f86542a | 43 | BusOut Anodos; |
ArmandoOlvera | 0:1f635f86542a | 44 | BusOut Catodos; |
ArmandoOlvera | 0:1f635f86542a | 45 | }; |
ArmandoOlvera | 0:1f635f86542a | 46 | |
ArmandoOlvera | 0:1f635f86542a | 47 | #endif |