Digistump Forums

The Digispark => Digispark (Original) Support => Topic started by: yair on May 17, 2013, 01:21:30 pm

Title: DigisparkSoftSerial - error on compile
Post by: yair on May 17, 2013, 01:21:30 pm
Code: [Select]
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>


Title: Re: DigisparkSoftSerial - error on compile
Post by: yair on May 17, 2013, 01:41:52 pm
changed line in header to reflact corrrect folder structure
Code: [Select]
#include "../DigisparkTinyPinChange/TinyPinChange.h"

and get just this
Code: [Select]
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>

Title: Re: DigisparkSoftSerial - error on compile
Post by: digistump on May 17, 2013, 02:18:21 pm
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>
Title: Re: DigisparkSoftSerial - error on compile
Post by: yair on May 17, 2013, 02:53:02 pm
thanks for the replay
example was SoftSerialExample.ino
Title: Re: DigisparkSoftSerial - error on compile
Post by: yair on May 17, 2013, 10:51:21 pm
i could not reproduce that error on a different machine

Title: Re: DigisparkSoftSerial - error on compile
Post by: smching on May 30, 2013, 08:30:38 am
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
Title: Re: DigisparkSoftSerial - error on compile
Post by: smching on May 30, 2013, 08:49:16 am
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!");
Title: Re: DigisparkSoftSerial - error on compile
Post by: RC Navy on May 30, 2013, 12:43:02 pm
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,