Getting started with UPER on Windows
Connecting and installing drivers
- Connect the UPER board to your computer using USB cable.
- Download UPER device drivers and extract them on your computer.
- Open up windows Device manager. In the Other devices section you should see two devices (UPER COM and UART Bridge) with yellow exclamation marks.
- Press right mouse button on UPER COM device and click "Update driver software". In the following dialog choose "Browse my computer for driver software".
- In the next window browse for a path where you have extracted the device drivers, check "Include subfolders" and click next. Windows should now install device drivers. If you get an error or driver signature warning, which does not allow to continue installation, please set (temporarily) your computer date before the 29th April 2014 and try again.
- Repeat the same steps with UART Bridge device. Once finished you should be able to see two new devices in the Ports category.
Blinking the LED
The easiest way to start working with UPER is by using UPER Python API, which is a part of IoTPy.
First of all if you haven't already done this, download and install Python 1).
Then download IoTPy API and save it in the directory in which you are going to work.
Next, using IDLE 2) or any other text editor of your choice save the following code to the blinky.py file:
from time import sleep from IoTPy.pyuper.ioboard import IoBoard from IoTPy.pyuper.gpio import GPIO with IoBoard() as uper, uper.get_pin(GPIO, 27) as red_led: while True: print "LED ON" red_led.write(0) sleep(0.5) print "LED OFF" red_led.write(1) sleep(0.5)
Finally you can launch your program by pressing F5 if you are using IDLE, or by double clicking on the blinky.py file.