From 6b6d46c3e1fa2c05aee87d84c197ea620efb7370 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Wed, 11 Aug 2010 22:59:00 +0000 Subject: Adding shiftIn() from Wiring (no count or delaytime though). --- cores/arduino/wiring.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cores/arduino/wiring.h') diff --git a/cores/arduino/wiring.h b/cores/arduino/wiring.h index d0ce1c3..6f61293 100755 --- a/cores/arduino/wiring.h +++ b/cores/arduino/wiring.h @@ -117,7 +117,8 @@ void delay(unsigned long); void delayMicroseconds(unsigned int us); unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout); -void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, byte val); +void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val); +uint8_t shiftIn(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder); void attachInterrupt(uint8_t, void (*)(void), int mode); void detachInterrupt(uint8_t); -- cgit v1.2.3-18-g5258