From d7581bb50520f19f1ec358e1948b1f2624102627 Mon Sep 17 00:00:00 2001 From: "Edward A. Lee" Date: Tue, 21 Apr 2026 09:56:48 -0700 Subject: [PATCH] Renamed Led to LedController --- reference/FederatedBlinking.lf | 4 ++-- reference/HelloUc.lf | 4 ++-- reference/{Led.lf => LedController.lf} | 2 +- reference/Sensor.lf | 4 ++-- src/FederatedBlinking.lf | 4 ++-- src/HelloUc.lf | 4 ++-- src/{Led.lf => LedController.lf} | 2 +- src/Sensor.lf | 4 ++-- 8 files changed, 14 insertions(+), 14 deletions(-) rename reference/{Led.lf => LedController.lf} (91%) rename src/{Led.lf => LedController.lf} (92%) diff --git a/reference/FederatedBlinking.lf b/reference/FederatedBlinking.lf index 19f8783..ac6c482 100644 --- a/reference/FederatedBlinking.lf +++ b/reference/FederatedBlinking.lf @@ -1,6 +1,6 @@ target uC -import Led from "./Led.lf" +import LedController from "./LedController.lf" import LSM6DS33 from "./LSM6DS33.lf" reactor SensorNode(id: int = 0) { @@ -8,7 +8,7 @@ reactor SensorNode(id: int = 0) { #define ORIENTATION_TO_TIME 12566.0f #define OFFSET_ANGLE 12.566f // 2 * pi, to avoid division by zero =} - led = new Led(); + led = new LedController(); lsm6ds33 = new LSM6DS33(); logical action blink: int; diff --git a/reference/HelloUc.lf b/reference/HelloUc.lf index e1e03ca..fb83f73 100644 --- a/reference/HelloUc.lf +++ b/reference/HelloUc.lf @@ -1,9 +1,9 @@ target uC -import Led from "./Led.lf" +import LedController from "./LedController.lf" main reactor { - led = new Led(); + led = new LedController(); timer t(10msec, 500msec) diff --git a/reference/Led.lf b/reference/LedController.lf similarity index 91% rename from reference/Led.lf rename to reference/LedController.lf index 86a9a96..c709796 100644 --- a/reference/Led.lf +++ b/reference/LedController.lf @@ -4,7 +4,7 @@ preamble {= #include "led.h" =} -reactor Led { +reactor LedController { input toggle: int; input set_state: bool; diff --git a/reference/Sensor.lf b/reference/Sensor.lf index dc4c176..9df56c8 100644 --- a/reference/Sensor.lf +++ b/reference/Sensor.lf @@ -1,6 +1,6 @@ target uC -import Led from "./Led.lf" +import LedController from "./LedController.lf" import LSM6DS33 from "./LSM6DS33.lf" preamble {= @@ -10,7 +10,7 @@ preamble {= @timeout(10s) main reactor { - led = new Led(); + led = new LedController(); lsm6ds33 = new LSM6DS33(); logical action blink: int; diff --git a/src/FederatedBlinking.lf b/src/FederatedBlinking.lf index f9f7873..ef7d689 100644 --- a/src/FederatedBlinking.lf +++ b/src/FederatedBlinking.lf @@ -1,6 +1,6 @@ target uC -import Led from "./Led.lf" +import LedController from "./LedController.lf" import LSM6DS33 from "./LSM6DS33.lf" reactor SensorNode(id: int = 0) { @@ -8,7 +8,7 @@ reactor SensorNode(id: int = 0) { #define ORIENTATION_TO_TIME 12566.0f #define OFFSET_ANGLE 12.566f // 2 * pi, to avoid division by zero =} - led = new Led(); + led = new LedController(); lsm6ds33 = new LSM6DS33(); logical action blink: int; diff --git a/src/HelloUc.lf b/src/HelloUc.lf index 8b95b7b..cd9b54d 100644 --- a/src/HelloUc.lf +++ b/src/HelloUc.lf @@ -1,9 +1,9 @@ target uC -import Led from "./Led.lf" +import LedController from "./LedController.lf" main reactor { - led = new Led(); + led = new LedController(); timer t(10msec, 500msec) diff --git a/src/Led.lf b/src/LedController.lf similarity index 92% rename from src/Led.lf rename to src/LedController.lf index d078c8c..7f94b28 100644 --- a/src/Led.lf +++ b/src/LedController.lf @@ -4,7 +4,7 @@ preamble {= #include "led.h" =} -reactor Led { +reactor LedController { input toggle: int; input set_state: bool; diff --git a/src/Sensor.lf b/src/Sensor.lf index 6f95939..84f646c 100644 --- a/src/Sensor.lf +++ b/src/Sensor.lf @@ -1,6 +1,6 @@ target uC -import Led from "./Led.lf" +import LedController from "./LedController.lf" import LSM6DS33 from "./LSM6DS33.lf" preamble {= @@ -9,7 +9,7 @@ preamble {= =} main reactor { - led = new Led(); + led = new LedController(); lsm6ds33 = new LSM6DS33(); logical action blink: int;