#define LF 10 #define CR 13 #define TAB 9 #define ESC 27 #define ON 1 #define OFF 0 typedef unsigned char uchar; typedef unsigned int uint; typedef unsigned long ulong; typedef unsigned short ushort; #define PB7 7 // PORTB #define PB6 6 #define PB5 5 #define PB4 4 #define PB3 3 #define PB2 2 #define PB1 1 #define PB0 0 #define PC7 7 #define PC6 6 // PORTC #define PC5 5 #define SDA 4 #define SCL 3 #define PC2 2 #define PC1 1 #define PC0 0 // TWI(I2C)動作のマクロ設定 #define SCL_H \ TRISC &= ~(1<