온도별 옷차림과 부가기능(c언어,라즈베리파이) (완료) #include #include #include #include #include #define SHT20_I2C_ADDR 0x40 #define SHT20_I2C_CMD_MEASURE_TEMP 0xF3 #define SHT20_I2C_CMD_MEASURE_HUMI 0xF5 #define SHT20_SOFT_RESET 0xFE #define LIGHT_I2C_ADDR 0x23 #define LIGHT_I2C_POWER_DOWN 0x00 #define LIGHT_I2C_POWER_ON 0x01 #define LIGHT_I2C_RESET 0x07 #define LIGHT_I2C_CON_HR_MODE 0x10 #define LED_I2C_ADDR 0x20 ..
#include #include #include #include #define ASC 0 #define DSC 1 const int TRUE = 1; const int FALSE = 0; using std::cout; using std::cin; using std::endl; typedef struct fruit{ int id; char name[20]; int price; struct fruit *link; }Fruit; int addHead(Fruit **head, int id, char *name, int price); int removeHead(Fruit **head); int removeAll(Fruit **head); void printList(Fruit *head); int getId(Fru..