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: