Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Can u please help me to find the UUGearDevice usb device id and how to a add to python program. i dont know nothing about python. i opened the voltageMeasrement.py but i dont know how to add the device id to it now when i run that program it is showing that "UUgear device is not correctly initialized . here is the code

Python
from time import sleep
from UUGear import *

UUGearDevice.setShowLogs(0)

device = UUGearDevice('UUGear-Arduino-7853-2668')

if device.isValid():
for i in range(100):
print "%0.2f" % (float(device.analogRead(3)) * 5 / 1024), "V"
sleep(0.2)

device.detach()
device.stopDaemon()
else:
print 'UUGear device is not correctly initialized.'
Posted
Comments
[no name] 10-Jul-15 6:23am    
See, http://www.codeproject.com/Questions/1008137/how-to-run-this-C-code, the same answers you got there apply to this not-a-question also.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900