From 2aa3e6fff58e27c7c0adeb6190fc49e75e8af4de Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 17 Jul 2018 15:17:23 +0200 Subject: Modify lyza-test script for the olsndots --- doc/lyza_test.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/lyza_test.py b/doc/lyza_test.py index 85a6b81..9e48318 100644 --- a/doc/lyza_test.py +++ b/doc/lyza_test.py @@ -6,9 +6,10 @@ import sqlite3 from olsndot import Olsndot, Driver from datetime import datetime -from pyBusPirateLite import Buspirate - -uut = Olsndot(0xDEBE10BB) -d = Driver('/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A50285BI-if00-port0', devices=[uut]) +uut1 = Olsndot(0x23420001) +uut2 = Olsndot(0x23420002) +d = Driver('/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A50285BI-if00-port0', devices=[uut1, uut2]) +print('uut 1:', uut1.fetch_status()) +print('uut 2:', uut2.fetch_status()) -- cgit