pcf8574-blinky v2

This commit is contained in:
Ajit Ananthadevan 2025-08-21 04:04:37 +10:00
parent 4baa62ef9a
commit 5db0144d4c
4 changed files with 270 additions and 0 deletions

View 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);