Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions internal/orchestrator/app/generator/app_template/python/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
def main():
print("Hello World!")
import time

from arduino.app_utils import App

if __name__ == "__main__":
main()
print("Hello world!")


def loop():
"""This function is called repeatedly by the App framework."""
# You can replace this with any code you want your App to run repeatedly.
time.sleep(10)


# See: https://docs.arduino.cc/software/app-lab/tutorials/getting-started/#app-run
App.run(user_loop=loop)
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
def main():
print("Hello World!")
import time

from arduino.app_utils import App

if __name__ == "__main__":
main()
print("Hello world!")


def loop():
"""This function is called repeatedly by the App framework."""
# You can replace this with any code you want your App to run repeatedly.
time.sleep(10)


# See: https://docs.arduino.cc/software/app-lab/tutorials/getting-started/#app-run
App.run(user_loop=loop)
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
def main():
print("Hello World!")
import time

from arduino.app_utils import App

if __name__ == "__main__":
main()
print("Hello world!")


def loop():
"""This function is called repeatedly by the App framework."""
# You can replace this with any code you want your App to run repeatedly.
time.sleep(10)


# See: https://docs.arduino.cc/software/app-lab/tutorials/getting-started/#app-run
App.run(user_loop=loop)