The following steps have not helped me to blink the above LED1_R from Shell Terminal.
- I am in SBC Mode.
- I have opened Shell Terminal.
- I have given the following command to create/open/edit file named blinkled1r.py
nano blinkled1r.py - I have entered the following codes in the edit window.
import time
from arduino.app_utils import App, Leds, Bridge
def loop():
# Turn on the LED red segment (1, 0, 0)
Leds.set_led1_color(1,0,0)
time.sleep(1)
Leds.set_led1_color(0,0,0)
time.sleep(1)
App.run(user_loop=loop)
-
I have saved the file and exited the edit window.
-
I have given the following command to execute the saved python file.
python3 blinkled1r.py -
The LED1_R is not blinking.
-
This is the error message:
arduino is not found.
I would appreciate help to solve this problem. The script runs well from App Lab Interface.