#ifndefI2C_H#defineI2C_H#definesda(P1.1)#definescl(P1.0)voidi2c_delay(unsignedchari);voidi2c_start(void);voidi2c_stop(void);voidi2c_sendbyte(unsignedcharbyt);unsignedchari2c_waitack(void);unsignedchari2c_receivebyte(void);voidi2c_sendack(unsignedcharackbit);voidwrite_eeprom(unsignedcharadd,unsignedcharval);unsignedcharread_eeprom(unsignedcharadd);voidinit_pcf8591(void);unsignedcharadc_pcf8591(void);#endif
2019/10/26 1:50:20
100KB
瑞萨
1