Dart Code Examples/en
Version vom 30. September 2024, 16:10 Uhr von Cg (Diskussion | Beiträge)
Pin Access, Geerating Logs[Bearbeiten]
Create a new Dart action, and add an output pin named "out1". Uncomment the pin-output write line.
import 'dart:io';
import 'expecco';
main() {
String message = 'Hello again';
String inVal = '$(in1)';
print('Hello World from Dart');
stderr.writeln(':logInfo:${message}');
logInfo('another info');
out('out1', 'a value at a pin');
logInfo(inVal);
}
The input pin's value is read with "$(in1)".
THe output is written with "out('out1', ...);"