mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-14 11:29:26 +01: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:
parent
6fa5f183e4
commit
6a6ed3d10a
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user