Skip to content

Fail to flash Arduino Blink example #2493

@Chengyen851010

Description

@Chengyen851010

Hi, I tried to flash the Arduino Blink example following the instructions on this page in the Lingua Franca playground and encountered errors like this:

Image

My Blink.lf:

target C {
  platform: {
    name: "arduino",
    board: "arduino:renesas_uno:unor4wifi",
    port: "/dev/cu.usbmodemF412FA9C6A182",
    baud-rate: 115200,
    flash: true
  }
}


main reactor Blink {
  timer t1(0, 10 sec)
  timer t2(500 msec, 10 sec)
  reaction(startup) {=
    pinMode(LED_BUILTIN, OUTPUT);
  =}

  reaction (t1) {=
    digitalWrite(LED_BUILTIN, HIGH);
  =}

  reaction (t2) {=
    digitalWrite(LED_BUILTIN, LOW);
  =}
}

Can anyone help me with this? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    arduinobugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions