pcf8574-blinky v2
This commit is contained in:
parent
4baa62ef9a
commit
5db0144d4c
4 changed files with 270 additions and 0 deletions
17
myapps/misc/pcf8574-blinky-refac/src/inc/pcf8574.h
Normal file
17
myapps/misc/pcf8574-blinky-refac/src/inc/pcf8574.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// PCF8574 driver header
|
||||
|
||||
|
||||
#define PCFP0 0x01
|
||||
#define PCFP1 0x02
|
||||
#define PCFP2 0x04
|
||||
#define PCFP3 0x08
|
||||
#define PCFP4 0x10
|
||||
#define PCFP5 0x20
|
||||
#define PCFP6 0x40
|
||||
#define PCFP7 0x80 //128
|
||||
|
||||
void pcf_init();
|
||||
|
||||
void pcf_setbits(uint8_t ports);
|
||||
void pcf_resetbits(uint8_t ports);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue