get pms5003 read working
This commit is contained in:
parent
51d97c2086
commit
ecb1e00198
3 changed files with 110 additions and 34 deletions
|
|
@ -11,10 +11,12 @@ typedef struct {
|
|||
|
||||
typedef struct {
|
||||
uart_inst_t *uart;
|
||||
uint8_t enable_pin;
|
||||
uint8_t reset_pin;
|
||||
} pms5003_config;
|
||||
|
||||
void pms5003_init(pms5003_config *config, uart_inst_t *uart, uint8_t tx_pin,
|
||||
uint8_t rx_pin);
|
||||
uint8_t rx_pin, uint8_t enable_pin, uint8_t reset_pin);
|
||||
|
||||
pms5003_reading pms5003_read(pms5003_config *config);
|
||||
#endif /* PMS5003_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue