Releases: mamin27/Python-for-Lazarus
Releases · mamin27/Python-for-Lazarus
Only pure Python-to-Lazarus Package
Package working at Raspberry PI 3+ with Lazarus IDE v2.0.0. Used with project https://github.com/mamin27/ecomet_i2c_raspberry_tools
Stable version 1.0
Stable version 1.0
Used PythonEngine, PythonInputOutput modules.
Example:
procedure self_test ();
var
Py_S: TStringList;
begin
Py_S := TStringList.Create;
Py_S.Delimiter := '|';
Py_S.StrictDelimiter := True;
Py_S.DelimitedText := 'from i2c_pkg.hdc1080_pkg import hdc1080|' +
'sens = hdc1080.HDC1080()|' +
'ret = sens.self_test()|' +
'if ret == 0 :|' +
' print(":TEST_PASSED:")|' +
'else :|' +
' print(":MISSING_CHIP:")|';
Form_hdc1080.PythonEngine_hdc1080.ExecStrings(Py_S);
Py_S.Free;
end;