29 #define read16() 256*(uint8_t)read_byte() + (uint8_t)read_byte()
30 #define from16(a, b) 256*a+b
31 #define write16(i) { write_byte((uint8_t)i/256); write_byte((uint8_t)i%256); }
34 bool input_available(void);
35 uint8_t read_byte(void);
36 void write_byte(uint8_t b
);
38 /* Analog and digital pins */
40 void write_dpin(uint8_t i
, bool b
);
41 bool read_dpin(uint8_t i
);
44 void write_apin(uint8_t i
, uint8_t a
);
45 uint8_t read_apin(uint8_t i
);
50 void led_on(uint8_t i
);
51 void led_off(uint8_t i
);
54 /* Delay and communication */
60 void debug(char *fmt
, ...);
62 void die(char *fmt
, ...);