From 1668ca09e5e0454f6ef497bddc1b8f87b0a9560b Mon Sep 17 00:00:00 2001 From: Jarrad Brown Date: Mon, 23 Feb 2026 17:28:40 -0600 Subject: [PATCH] Teensy Test code for communication to board --- Source/ports/OpEnerTeensy/platformio.ini | 23 +++++++++++++++++++++++ Source/ports/OpEnerTeensy/src/main.cpp | 3 +++ 2 files changed, 26 insertions(+) diff --git a/Source/ports/OpEnerTeensy/platformio.ini b/Source/ports/OpEnerTeensy/platformio.ini index a13d034..353931a 100644 --- a/Source/ports/OpEnerTeensy/platformio.ini +++ b/Source/ports/OpEnerTeensy/platformio.ini @@ -12,3 +12,26 @@ platform = teensy board = teensy41 framework = arduino + +monitor_speed = 115200 +upload_protocol = teensy-gui + +lib_deps = + https://github.com/ssilverman/QNEthernet.git + +build_flags = + -Ilib/opener + -Ilib/opener/cip + -Ilib/opener/cip_objects + -Ilib/opener/enet_encap + -Ilib/opener/utils + -Ilib/opener/teensy_port + -Ilib/opener/ports/teensy_port + + ${env.build_flags} + -Wall + -Wextra + +build_src_filter = + +<*> + - \ No newline at end of file diff --git a/Source/ports/OpEnerTeensy/src/main.cpp b/Source/ports/OpEnerTeensy/src/main.cpp index cb9fbba..cad53f9 100644 --- a/Source/ports/OpEnerTeensy/src/main.cpp +++ b/Source/ports/OpEnerTeensy/src/main.cpp @@ -10,6 +10,9 @@ void setup() { void loop() { // put your main code here, to run repeatedly: + int data = myFunction(50,1); + Serial.print((int)data); + delay(1000); } // put function definitions here: