Iei-integration AFL2-W19A-H61 v1.11 Instrukcja Użytkownika Strona 51

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 277
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 50
AFL2-W19A/AB-H61
Page 32
HANDLE hSMB_Dev = LIGHTBAR_DriverInit();//Init SMBAPI driver and get device Handle.
LIGHTBAR_DeviceInit(hSMB_Dev);//Init Target device
//Set LED level information.
LEDCOLOR.R_LEVEL = 7;
LEDCOLOR.G_LEVEL = 7;
LEDCOLOR.B_LEVEL = 7;
//Set LED Address
LEDCOLOR.LED_Info.Main_Addr = 0xC0;
LEDCOLOR.LED_Info.R_LN = 0x00;
LEDCOLOR.LED_Info.G_LN = 0x01;
LEDCOLOR.LED_Info.B_LN = 0x02;
If(LIGHTBAR_Brightness_Single(hSMB_Dev, LEDCOLOR, 1) == False){
//Error message
}
LIGHTBAR_DeviceClose(hSMB_Dev); //Close Device.
LIGHTBAR_DriverUninit(hSMB_Dev); //Close Driver Handle
delete LEDCOLOR;
}
2.4.4.2 Turn on LED - multiple
{
//Define Data structure
PLED_PWM_INFO LEDCOLOR = (PLED_PWM_INFO)malloc(sizeof(LED_PWM_INFO) * 4);
HANDLE hSMB_Dev = LIGHTBAR_DriverInit();//Init SMBAPI driver and get device Handle.
LIGHTBAR_DeviceInit(hSMB_Dev);//Init Target device
LEDCOLOR [0].LED_Info.Main_Addr = 0xD0;
LEDCOLOR [0].LED_Info.R_LN = 0x02;
LEDCOLOR [0].LED_Info.G_LN = 0x03;
LEDCOLOR [0].LED_Info.B_LN = 0x04;
LEDCOLOR [0].R_LEVEL = 7;
Przeglądanie stron 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 276 277

Komentarze do niniejszej Instrukcji

Brak uwag