From b1ad096dbe32a9191bcaccd08e71f08ce382405a Mon Sep 17 00:00:00 2001 From: gijsio <67470426+gijsio@users.noreply.github.com> Date: Fri, 2 Oct 2020 12:45:40 +0200 Subject: [PATCH] Update dashboard.md made the example actually work :) --- content/pybytes/dashboard.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/content/pybytes/dashboard.md b/content/pybytes/dashboard.md index c088b4b..ff5c099 100644 --- a/content/pybytes/dashboard.md +++ b/content/pybytes/dashboard.md @@ -12,7 +12,7 @@ In this section, we will explain how to create widgets for data visualisation an ## Step 1: Setup a Pymakr Project -1. Create a project in Pymakr called `Pybytes_signals`, and add the following code to `main.py`. This python application will send data from the array every 5 seconds to Pybytes. +1. Create a project in Pymakr called `Pybytes_signals`, and add the following code to `main.py`. This python application will send data every 5 seconds to Pybytes. ```python # Import what is necessary to create a thread @@ -21,8 +21,7 @@ In this section, we will explain how to create widgets for data visualisation an # Send data continuously to Pybytes while True: - for i in range(0,10): - + for i in range(0,20): pybytes.send_signal(math.sin(i*math.pi)) print('sent signal {}'.format(i)) time.sleep(10) @@ -30,6 +29,8 @@ In this section, we will explain how to create widgets for data visualisation an 2. Press *Upload* button to upload the code into your device. +>Note that if you have a Pytrack or Pysense expansion board, you could also sent sensor data instead! + ## Step 2: Add a signal from your device