add ability to read from USB serial

This commit is contained in:
Joey Castillo
2022-05-08 20:19:20 -04:00
parent 838102a7e9
commit 661e2b6a73
3 changed files with 30 additions and 4 deletions

View File

@@ -76,4 +76,12 @@
*/
bool watch_is_buzzer_or_led_enabled(void);
/** @brief Reads up to len bytes from the USB serial.
* @param file ignored, you can pass in 0
* @param ptr pointer to a buffer of at least len bytes
* @param len the number of bytes you wish to read, max 256.
* @return The number of bytes read, or zero if no bytes were read.
*/
int read(int file, char *ptr, int len);
#endif /* WATCH_H_ */