![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Utilities for Building using Arduino CLI. More...
Public Member Functions | |
| ArduinoUtil (LFGeneratorContext context, GeneratorCommandFactory commandFactory, MessageReporter messageReporter) | |
| void | buildArduino (FileConfig fileConfig, TargetConfig targetConfig) |
| Compiles (and possibly auto-flashes) an Arduino program once code generation is completed. | |
Utilities for Building using Arduino CLI.
We take in a Generator Context, Command Factory, and Error Reporter and make subsequent calls to arduino-cli given a FileConfig and TargetConfig.
This should be used immediately after CodeGen to compile if the user provides a board type within their LF file. If the user also provides a port with flash enabled, we will also attempt to upload the compiled sketch directly to the board.
| org.lflang.util.ArduinoUtil.ArduinoUtil | ( | LFGeneratorContext | context, |
| GeneratorCommandFactory | commandFactory, | ||
| MessageReporter | messageReporter ) |
| void org.lflang.util.ArduinoUtil.buildArduino | ( | FileConfig | fileConfig, |
| TargetConfig | targetConfig ) |
Compiles (and possibly auto-flashes) an Arduino program once code generation is completed.
| fileConfig | |
| targetConfig |