Go Down

Topic: Help with Liquidware TouchShield Slide (Read 761 times) previous topic - next topic

ignotuscaligo

Not sure where to post this, but here's a start. I couldn't find the forums for Liquidware, so I figured I'd ask here.

I'm writing some code for the shield that uses strings. Whenever using Arduino Antipasto (the IDE provided by liquidware), my code will not compile, saying that "string" datatype is not recognized. I wrote some simple code to test this, and that even failed:

String hwStr;

void setup()
{
  Serial.begin(115200);
  hwStr = "Hello World";
}

void loop()
{
  Serial.print(hwStr);
}

RESULT:

Handling the compile 1
Saving sketches...
Sketches saved.
compile(), new thread run about to sketch.compile()
     [echo] Building Arduino Uno libraries...
     [echo] Building Arduino Uno board target...
     [echo] Building sketch_jul11a for the Arduino Uno core...
    [apply] In file included from /var/folders/c5/vkkkpd41307fggjkjzxkht3r0000gn/T/build4495692454251878762.tmp/tmp/sketch_jul11a/sketch-wrapper.cpp:15:
    [apply] /var/folders/c5/vkkkpd41307fggjkjzxkht3r0000gn/T/build4495692454251878762.tmp/tmp/sketch_jul11a/sketch_jul11a.pde:4: error: 'String' does not name a type
    [apply] /var/folders/c5/vkkkpd41307fggjkjzxkht3r0000gn/T/build4495692454251878762.tmp/tmp/sketch_jul11a/sketch_jul11a.pde: In function 'void setup()':
    [apply] /var/folders/c5/vkkkpd41307fggjkjzxkht3r0000gn/T/build4495692454251878762.tmp/tmp/sketch_jul11a/sketch_jul11a.pde:9: error: 'hwStr' was not declared in this scope
    [apply] /var/folders/c5/vkkkpd41307fggjkjzxkht3r0000gn/T/build4495692454251878762.tmp/tmp/sketch_jul11a/sketch_jul11a.pde: In function 'void loop()':
    [apply] /var/folders/c5/vkkkpd41307fggjkjzxkht3r0000gn/T/build4495692454251878762.tmp/tmp/sketch_jul11a/sketch_jul11a.pde:14: error: 'hwStr' was not declared in this scope


BUILD FAILED
/Applications/Antipasto.app/Contents/Resources/Java/hardware/arduino/cores/arduino/build.xml:136: The following error occurred while executing this line:
/Applications/Antipasto.app/Contents/Resources/Java/hardware/arduino/cores/arduino/src/template/build.xml:125: The following error occurred while executing this line:
/Applications/Antipasto.app/Contents/Resources/Java/hardware/arduino/cores/arduino/config/build.ccmacros.xml:92: apply returned: 1

Total time: 5 seconds

anyone else  having this trouble as well?

atomicdragon

Hello,

String is not currently part of Arduino 0018 - Antipasto 0044, as it was added to part of the core as of Arduino 0019. I too am currently looking for a solution, but as of now I suggest using char arrays.

-AtomicDragon

Go Up