From 6ac386a506eed2212566ecbf7ea6f4a96e9b49eb Mon Sep 17 00:00:00 2001 From: joeycastillo Date: Wed, 3 Aug 2022 17:57:16 +0000 Subject: deploy: e790a025787e0e1aa59b98b95e194cf4318d1578 --- watch_8h.html | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) (limited to 'watch_8h.html') diff --git a/watch_8h.html b/watch_8h.html index a8fea761..6826ac35 100644 --- a/watch_8h.html +++ b/watch_8h.html @@ -21,7 +21,7 @@ -
Sensor Watch 0.0.1 +
Sensor Watch 0.0.2
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
@@ -87,6 +87,7 @@ $(function() { #include "watch_i2c.h"
#include "watch_spi.h"
#include "watch_uart.h"
+#include "watch_storage.h"
#include "watch_deepsleep.h"
#include "watch_private.h"
@@ -97,8 +98,60 @@ Functions bool watch_is_buzzer_or_led_enabled (void)  Returns true if either the buzzer or the LED driver is enabled. More...
  + +bool watch_is_usb_enabled (void) + Returns true if USB is enabled.
+  +int read (int file, char *ptr, int len) + Reads up to len bytes from the USB serial. More...

Function Documentation

+ +

◆ read()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int read (int file,
char * ptr,
int len 
)
+
+ +

Reads up to len bytes from the USB serial.

+
Parameters
+ + + + +
fileignored, you can pass in 0
ptrpointer to a buffer of at least len bytes
lenthe number of bytes you wish to read, max 256.
+
+
+
Returns
The number of bytes read, or zero if no bytes were read.
+ +
+

◆ watch_is_buzzer_or_led_enabled()

-- cgit v1.2.3