zavrsni ricci

Dependencies:   mbed

memoria.h

Committer:
marcoricci
Date:
2018-11-09
Revision:
0:427833cc260e

File content as of revision 0:427833cc260e:

#define LEVEL1      0x01
#define LEVEL2      0x02
#define LEVEL3      0x03
#define LEVEL4      0x04
#define LEVEL5      0x05
#define LEVEL6      0x06
#define LEVEL7      0x07
#define ST_INIT       32              // stato inizializzazione polling
#define ST_M1         33              // voltmetro
#define ST_M2         34              // conta UP
#define ST_M3         35              // conta DWN
#define ST_MMAX       36              // fine menu'

unsigned char tabSeg[10U]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};  // 0,1,2,3,4,5,6,7,8,9
unsigned char tabFunc[9U] = {0x8E,0xC6,0xC1,0x8C,0xC7,0xC0,0x86,0xC8,0xA1}; // 0-F,1-C,2-U,3-P,4-L,5-O,6-E,7-n,8-d
unsigned short stateMach;
TBitFlag bitFlag;
char  KeyPress;
char  KeyPressInt;      // tasto letto nell'nterrupt
char  ExKeyPress;       // tasto precedente
char  cntEqualKey;      // contatore di tasti uguali, successivi
char  Level;
char  stateMbd;
unsigned short CntUp;
unsigned short CntDw;
float ADCdata;