Rev 410 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download
#include <16F84.h>
#use delay(clock=4000000)
#fuses XT,NOWDT
#DEFINE DATA PIN_B0 // musi byt definovan kanal DATA
#DEFINE CLK PIN_B1 // a taky hodiny CLK
#define PRVNI 1000 // nastaveni prodlevy pred zacatkem vysilani bajtu
#define DRUHY 2
#define TRETI DRUHY
// prikazy
#define RESET 0xFF
#define ENABLE_DATA_REPORTING 0xF4
#define READ_DATA 0xEB
#define STATUS_REQUEST 0xE9
#define SET_REMOTE_MODE 0xF0
#define SET_STREAM_MODE 0xEA
#define GET_DEVICE_ID 0xF2
#DEFINE LED_yellow PIN_A3
#DEFINE LED_red PIN_A2
#DEFINE BLIK 120 // doba rozsviceni led