Author Topic: DigisparkSoftSerial - error on compile  (Read 7463 times)

yair

  • Newbie
  • *
  • Posts: 4
DigisparkSoftSerial - error on compile
« 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>



yair

  • Newbie
  • *
  • Posts: 4
Re: DigisparkSoftSerial - error on compile
« Reply #1 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>


digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: DigisparkSoftSerial - error on compile
« Reply #2 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>

yair

  • Newbie
  • *
  • Posts: 4
Re: DigisparkSoftSerial - error on compile
« Reply #3 on: May 17, 2013, 02:53:02 pm »
thanks for the replay
example was SoftSerialExample.ino

yair

  • Newbie
  • *
  • Posts: 4
Re: DigisparkSoftSerial - error on compile
« Reply #4 on: May 17, 2013, 10:51:21 pm »
i could not reproduce that error on a different machine


smching

  • Newbie
  • *
  • Posts: 3
Re: DigisparkSoftSerial - error on compile
« Reply #5 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

smching

  • Newbie
  • *
  • Posts: 3
Re: DigisparkSoftSerial - error on compile
« Reply #6 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!");

RC Navy

  • Jr. Member
  • **
  • Posts: 54
  • When you like, even too much, it is not enough!
Re: DigisparkSoftSerial - error on compile
« Reply #7 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,