lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.util.ArduinoUtil Class Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ ArduinoUtil()

org.lflang.util.ArduinoUtil.ArduinoUtil ( LFGeneratorContext context,
GeneratorCommandFactory commandFactory,
MessageReporter messageReporter )

Member Function Documentation

◆ buildArduino()

void org.lflang.util.ArduinoUtil.buildArduino ( FileConfig fileConfig,
TargetConfig targetConfig )

Compiles (and possibly auto-flashes) an Arduino program once code generation is completed.

Parameters
fileConfig
targetConfig

The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/util/ArduinoUtil.java