mirror of
https://github.com/Cian-H/qmk_firmware.git
synced 2026-04-28 20:11:44 +01:00
Update GPIO expander API naming (#23375)
This commit is contained in:
@@ -55,11 +55,16 @@ bool mcp23018_set_output_all(uint8_t slave_addr, uint8_t confA, uint8_t confB);
|
||||
/**
|
||||
* Read state of a given port
|
||||
*/
|
||||
bool mcp23018_readPins(uint8_t slave_addr, mcp23018_port_t port, uint8_t* ret);
|
||||
bool mcp23018_read_pins(uint8_t slave_addr, mcp23018_port_t port, uint8_t* ret);
|
||||
|
||||
/**
|
||||
* Read state of both ports sequentially
|
||||
*
|
||||
* - slightly faster than multiple readPins
|
||||
*/
|
||||
bool mcp23018_readPins_all(uint8_t slave_addr, uint16_t* ret);
|
||||
bool mcp23018_read_pins_all(uint8_t slave_addr, uint16_t* ret);
|
||||
|
||||
// DEPRECATED - DO NOT USE
|
||||
|
||||
#define mcp23018_readPins mcp23018_read_pins
|
||||
#define mcp23018_readPins_all mcp23018_read_pins_all
|
||||
|
||||
Reference in New Issue
Block a user