Happy Friday Everyone,
Could someone help me convert this code to FWH? I would happy to pay you for your time.
Thank you!
define AddrPort 0x2e
define DataPort 0x2f
define SIO_UnLock_Value 0x87
define SIO_Lock_Value 0xaa
define SIO_LDN_GPIO 0x07
define GPIO_Port 0xF1
// Enter_Config
WriteByte (AddrPort , SIO_UnLock_Value);
WriteByte (AddrPort , SIO_UnLock_Value);
WriteByte (AddrPort , 0x07);
WriteByte (DataPort , SIO_LDN_GPIO);
//Set OUT1~OUT8Value
WriteByte( AddrPort , GPIO_Port);
WriteByte (DataPort , 0x00); //set OUT1~OUT8 value, OUT1=Bit0, OUT2=Bit1
// Read In1~In8 value
WriteByte( AddrPort, 0xED);
Data=ReadByte DataPort ); //Read In1~In8 value
// close config mode
WriteByte( AddrPort , SIO_Lock_Value);