I normally call VirtualWire up for my projects, but don't need it this time.
I have written a simple sketch and use Shifttout to send to shift registers.
If I don't call up VirtualWire library, I get this error .
error: too many arguments to function 'void shiftOut(uint8_t)'
showtime:39: error: at this point in file.
I have recently switched to v15 so is there a newer verson of shiftout I must use ?
'shiftOut()' should take four parameters, not one as the error states.
I'm using V1.6.5, and this compiles fine with no libraries included:-
shiftOut(3, 4, LSBFIRST, 24);
If I try:-
shiftOut(24);
as your error claims it should be done, I get a "too few arguments" error.
So I don't know what's going wrong with your code.
Can you show the code?
Thanks Steve,
I missed your reply as the notify doesnt seem to work any more ?
My shiftout is in the form:-
shiftOut ( dataPin, clockPin, LSBFIRST, greendisp ); }
but the strange thing is that I have tried deleting
#include <VirtualWire.h>
and now it compiles !
It saves a bit of ram, but what I was worried about was that VW uses interrupts and clocks and has 3 defaultpins, and I didnt know if that was interfering.
I have no idea why it needed VW to compile before !