Aber mache ich es mit avrdude, kommt nichts im Memo an.
Ausgeführt wird es aber, ansonsten würde die LED am USBasp nicht aufleuchten.
Code: Alles auswählen
procedure TForm1.Button2Click(Sender: TObject);
var
AProcess: TProcess;
begin
AProcess := TProcess.Create(nil);
// AProcess.CommandLine := 'avrdude -patmega328p -cusbasp -v';
AProcess.CommandLine := 'ls';
AProcess.Options := AProcess.Options + [poWaitOnExit, poUsePipes];
AProcess.Execute;
Memo1.Lines.LoadFromStream(AProcess.Output);
AProcess.Free;
end;