/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2018-06-12 zylx the first version. */ #ifndef __PCF8574_H #define __PCF8574_H #include #include "rtdevice.h" #define PCF8574_ADDR 0X20 rt_uint8_t pcf8574_read_byte(void); void pcf8574_write_byte(rt_uint8_t data); void pcf8574_write_bit(rt_uint8_t bit, rt_uint8_t sta); rt_uint8_t pcf8574_read_bit(rt_uint8_t bit); #endif