-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1581 from lf-lang/arduino-mbed-support
Arduino MBED RTOS Support
- Loading branch information
Showing
9 changed files
with
42 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule reactor-c
updated
42 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* This example demonstrates a very simple blink program that will turn on and | ||
* off an LED on the Arduino Board with a 50% duty cycle switching every | ||
* half-second. | ||
*/ | ||
target C { | ||
platform: { | ||
name: "arduino", | ||
board: "arduino:mbed:nano33ble" | ||
} | ||
} | ||
|
||
main reactor BlinkMBED { | ||
timer t1(0, 1 sec) | ||
timer t2(500 msec, 1 sec) | ||
|
||
reaction(startup) {= pinMode(LED_BUILTIN, OUTPUT); =} | ||
|
||
reaction(t1) {= digitalWrite(LED_BUILTIN, HIGH); =} | ||
|
||
reaction(t2) {= digitalWrite(LED_BUILTIN, LOW); =} | ||
} |