Tipkalo Linija

Dependents:   Lilnija_29012017

Committer:
mario_meh
Date:
Sun Jan 29 23:31:09 2017 +0000
Revision:
0:9624782a02b3
Child:
2:9085093855f0
Child:
3:b9ab9a191011
Tipkalo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mario_meh 0:9624782a02b3 1 #ifndef TIPKALO_H
mario_meh 0:9624782a02b3 2 #define TIPKALO_H
mario_meh 0:9624782a02b3 3
mario_meh 0:9624782a02b3 4 #define t_milisec_pritisnut = 200;
mario_meh 0:9624782a02b3 5
mario_meh 0:9624782a02b3 6 typedef enum {
mario_meh 0:9624782a02b3 7 TDOLJE = 1, TGORE = 0, TNEZNAM = -1
mario_meh 0:9624782a02b3 8 };
mario_meh 0:9624782a02b3 9
mario_meh 0:9624782a02b3 10 typedef struct t_status {
mario_meh 0:9624782a02b3 11 int radim; // tukljucen ili tiskljucen
mario_meh 0:9624782a02b3 12 int pritisnut;
mario_meh 0:9624782a02b3 13 } t_status;
mario_meh 0:9624782a02b3 14
mario_meh 0:9624782a02b3 15
mario_meh 0:9624782a02b3 16 //---------------TIPKALO------------------//
mario_meh 0:9624782a02b3 17 class Tipkalo {
mario_meh 0:9624782a02b3 18 public:
mario_meh 0:9624782a02b3 19 Tipkalo(PinName T);
mario_meh 0:9624782a02b3 20 t_status tDolje();
mario_meh 0:9624782a02b3 21 private:
mario_meh 0:9624782a02b3 22 InterruptIn _T;
mario_meh 0:9624782a02b3 23 int _countT;
mario_meh 0:9624782a02b3 24 };
mario_meh 0:9624782a02b3 25
mario_meh 0:9624782a02b3 26 //-----------TIPKALO JOYSTICK-------------//
mario_meh 0:9624782a02b3 27 // To je zapravo TIPKALO
mario_meh 0:9624782a02b3 28
mario_meh 0:9624782a02b3 29 #endif /* TIPKALO_H */