diff options
author | ThomasintAnker <thomasintanker1@gmail.com> | 2024-05-21 13:19:47 +0200 |
---|---|---|
committer | ThomasintAnker <thomasintanker1@gmail.com> | 2024-05-21 13:19:47 +0200 |
commit | 142772eb21060b66678ced9861d7718b7d2a215d (patch) | |
tree | cf14bfd6a22b3a08930f91518b72a5400ae94f4f /main/i2c.h | |
parent | 56440df6b9810dbbc4b33171030970fa2fbe1ca1 (diff) |
wip
Diffstat (limited to 'main/i2c.h')
-rw-r--r-- | main/i2c.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -6,6 +6,7 @@ #define SDA_PIN 16 #define SCL_PIN 17 +#define MAX_SLAVES 10 /** * \brief initialize all required gpio for i2c usage on the pico @@ -28,9 +29,14 @@ int read_i2c(uint8_t addr, uint8_t *output, size_t len); /** * \brief write data to addr with length len from i2c bus. - * + * \param addr + * \param input + * \param len * This functions writes data to a specific address on the i2c bus, * the input var holds the data which will be written to the given * address with length len. */ int write_i2c(uint8_t addr, uint8_t *input, size_t len); + +/** \brief looking for slave addresses and requesting updates */ +void bus_task(); |