Skip to content

Instantly share code, notes, and snippets.

@nagayev
Created February 19, 2018 17:31
Show Gist options
  • Save nagayev/d0c851775774b21f64cbbedf5fb86d9b to your computer and use it in GitHub Desktop.
Save nagayev/d0c851775774b21f64cbbedf5fb86d9b to your computer and use it in GitHub Desktop.
Python dll
from ctypes import *
lib = windll.LoadLibrary("lightSensor.dll") #load dll
lib.__GetLightSensor.restype = c_double #настраиваем тип возврата
while True:
print c_double(lib.__GetLightSensor())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment