1
0
Fork 0

Update GPIO expander API naming (#23375)

This commit is contained in:
Ryan 2024-03-30 03:57:21 +11:00 committed by GitHub
parent e891109c4e
commit d0cf7b8519
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 44 additions and 30 deletions

View file

@ -133,7 +133,7 @@ bool pca9505_set_output(uint8_t slave_addr, pca9505_port_t port, uint8_t conf) {
return true;
}
bool pca9505_readPins(uint8_t slave_addr, pca9505_port_t port, uint8_t* out) {
bool pca9505_read_pins(uint8_t slave_addr, pca9505_port_t port, uint8_t* out) {
uint8_t addr = SLAVE_TO_ADDR(slave_addr);
uint8_t cmd = 0;
switch (port) {
@ -156,7 +156,7 @@ bool pca9505_readPins(uint8_t slave_addr, pca9505_port_t port, uint8_t* out) {
i2c_status_t ret = i2c_read_register(addr, cmd, out, sizeof(uint8_t), TIMEOUT);
if (ret != I2C_STATUS_SUCCESS) {
print("pca9505_readPins::FAILED\n");
print("pca9505_read_pins::FAILED\n");
return false;
}