Digistump Forums
The Digispark => Digispark (Original) Support => Topic started by: yair on May 17, 2013, 01:21:30 pm
-
In file included from SoftSerialExample.ino:23:
C:\bin\Digispark-Arduino-1.0.4\libraries\DigisparkSoftSerial/SoftSerial.h:44:44: error: ../TinyPinChange/TinyPinChange.h: No such file or directory
SoftSerialExample.ino: In function 'void setup()':
SoftSerialExample:32: error: no match for 'operator!' in '!Serial'
SoftSerialExample.ino:32: note: candidates are: operator!(bool) <built-in>
-
changed line in header to reflact corrrect folder structure
#include "../DigisparkTinyPinChange/TinyPinChange.h"
and get just this
SoftSerialExample.ino: In function 'void setup()':
SoftSerialExample:32: error: no match for 'operator!' in '!Serial'
SoftSerialExample.ino:32: note: candidates are: operator!(bool) <built-in>
-
What code are you trying to compile? The path issue is know and will be fixed in the next release - but I have no issue once I fix that
Also this works:
#include <TinyPinChange.h>
-
thanks for the replay
example was SoftSerialExample.ino
-
i could not reproduce that error on a different machine
-
I encounter similar error too.
I'm getting following error when compile SoftSerialExample
SoftSerialExample.ino: In function 'void setup()':
SoftSerialExample:32: error: no match for 'operator!' in '!Serial'
SoftSerialExample.ino:32: note: candidates are: operator!(bool) <built-in>
I'm using DigisparkArduino-Win32-1.0.4-May19
-
After removed the following lines from SoftSerialExample, compile successfully.
// Open serial communications and wait for port to open:
Serial.begin(57600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
Serial.println("Goodnight moon!");
-
smching,
you were trying to compile an example dedicated to regular arduino: uno, mega...
<SoftSerial> library was not designed only for Digispark, it was also designed for regular arduinos.
"Serial" refers to an hardware UART which do not exist on the Digispark.
As already stressed somewhere in the forum, it's very difficult to manage common libraries for regular arduinos AND for the Digispark.
Regards,