2019-03-11 13:10:36 +08:00
|
|
|
/*
|
2019-03-11 22:55:07 +08:00
|
|
|
* Copyright (c) 2006-2018, RT-Thread Development Team
|
2019-03-11 13:10:36 +08:00
|
|
|
*
|
2019-03-11 22:55:07 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2019-03-11 13:10:36 +08:00
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2018-06-12 zylx the first version.
|
|
|
|
*/
|
|
|
|
#ifndef __PCF8574_H
|
|
|
|
#define __PCF8574_H
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
#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
|
|
|
|
|