You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**size_t write(uint8_t data)** writes a new value. Returns the bytes written.
38
+
-**size_t write(const uint8_t \*buffer, size_t size)** writes an array of size over shift out. Uses **write(uint8_t)** so expect about equal performance. Returns the bytes written.
39
+
-**uint8_t lastWritten()** returns last value written.
40
+
-**void setDelay(uint16_t microSeconds)** set delay per bit from 0 .. 65535 microseconds.
41
+
Note that the delay is not the time per bit but an additional time per bit.
42
+
Note: the delay can be set runtime per write / print call.
38
43
-**uint16_t getDelay()** returns the set delay in microseconds.
39
44
-**bool setBitOrder(bitOrder)** set LSBFIRST or MSBFIRST. Returns false for other values.
40
-
-**uint8_t getBitOrder(void)** returns LSBFIRST or MSBFIRST
45
+
Note: bitorder can be changed runtime per write / print call.
46
+
-**uint8_t getBitOrder(void)** returns LSBFIRST or MSBFIRST (typical 0 and 1).
47
+
41
48
49
+
### Print interface
42
50
43
-
## Notes
51
+
As this library implements the print interface one can use:
44
52
45
-
- to be tested
53
+
-**size_t print(any)** print any data type.
54
+
-**size_t println(any)** print any data type followed by a newline "\n".
0 commit comments