I have a motherboard with a kinda of jamma connector, model is axiomtek GMB121. They provide library for GPIO for windows as dll. The win32 application example works fine.
I'm trying to comunicate with this ddl using python. I wrote so far, coping from the C code example and converting in python:
from ctypes import *
ERR_Success = 0
ERR_Error = -1
ERR_NotExist = -2
ERR_Opened = -3
ERR_NotOpened = -4
debounce=1
mydll = windll.LoadLibrary("C:\\Users\\test\\Documents\\TestPy\\AGP1_MFC64.dll")
iRet=mydll.AXGMB_Nvram_Open()
if (iRet != ERR_Success and iRet != ERR_Opened):
print "error"
iRet = mydll.AXGMB_DIO_SetDebounceTime(debounce)
if (iRet == ERR_Success):
print "AXGMB_DIO_SetDebounceTime Function success"
else:
print "AXGMB_DIO_SetDebounceTime Function failure"
mydll.AXGMB_DIO_Close()
But what I got is:
iRet=mydll.AXGMB_Nvram_Open()
WindowsError: [Error -532459699] Windows Error 0xE0434F4D
And I don't know how to proceed, any advice?
User contributions licensed under CC BY-SA 3.0