mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-08 11:22:40 +03:00
Adding overloads for other integer types in Wire.write(). (Paul Stoffregen)
http://code.google.com/p/arduino/issues/detail?id=527
This commit is contained in:
@@ -61,6 +61,10 @@ class TwoWire : public Stream
|
|||||||
void onReceive( void (*)(int) );
|
void onReceive( void (*)(int) );
|
||||||
void onRequest( void (*)(void) );
|
void onRequest( void (*)(void) );
|
||||||
|
|
||||||
|
inline size_t write(unsigned long n) { return write((uint8_t)n); }
|
||||||
|
inline size_t write(long n) { return write((uint8_t)n); }
|
||||||
|
inline size_t write(unsigned int n) { return write((uint8_t)n); }
|
||||||
|
inline size_t write(int n) { return write((uint8_t)n); }
|
||||||
using Print::write;
|
using Print::write;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user