The following information is for the EMANT300
Turn on and off the LEDs Portwise
Learn:
- Digital Output
- LED
The Digital Port is written portwise ie 8 bits at a time using the USB DAQ Training Kit
WritePort_USB.py
Code Explained
The output bits are determined by the count value
8 – 0000 0111 all LEDs are turned off
7 – 0000 0110 only Green LED is turned on
0 – 0000 0000 all LEDs are turned on
For Windows, get serial port using diagnostic.exe
For Ubuntu, get serial port using the following
Python with EMANT380
| TOC | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |