8000 Add TwoWire::write(const char *) (#56) · WALLTECH/arduino-esp32@c026661 · GitHub
[go: up one dir, main page]

Skip to content

Commit c026661

Browse files
minykme-no-dev
authored andcommitted
Add TwoWire::write(const char *) (espressif#56)
1 parent 7abb15c commit c026661

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libraries/Wire/src/Wire.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ class TwoWire
7171
int peek(void);
7272
void flush(void);
7373

74+
inline size_t write(const char * s)
75+
{
76+
return write((uint8_t*) s, strlen(s));
77+
}
7478
inline size_t write(unsigned long n)
7579
{
7680
return write((uint8_t)n);
@@ -92,4 +96,3 @@ class TwoWire
9296
extern TwoWire Wire;
9397

9498
#endif
95-

0 commit comments

Comments
 (0)
0