Iei-integration AFL2-W19A-H61 v1.21 Instrukcja Użytkownika Strona 52

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 279
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 51
AFL2-W19A/AB-H61
Page 32
2.4.3.4 _LED_MODE_SETTINGS
Syntax: typedef struct _LED_MODE_SETTINGS{
UCHAR Main_Addr; //Main address
int LED_00;
int LED_01;
int LED_02;
int LED_03;
int LED_04;
int LED_05;
int LED_06;
int LED_07;
int LED_08;
int LED_09;
int LED_10;
int LED_11;
int LED_12;
int LED_13;
int LED_14;
}LED_MODE_SETTINGS, *PLED_MODE_SETTINGS;
Parameters:
Main_Addr [UCHAR]IC Address on I2C bus.
LED_00 ~ LED_15: Each LED operation mode, defined by
#define LED_DispMode_OFF 0 //Turn OFF LED.
#define LED_DispMode_Gen 1 //General Mode
#define LED_DispMode_BLNK 2 //Blinking Mode
Remarks: This structure can decision operation mode for each LED.
2.4.4 Programming Example
2.4.4.1 Turn on LED - s ingle
{
//Define Data structure
PLED_PWM_INFO LEDCOLOR = (PLED_PWM_INFO)malloc(sizeof(LED_PWM_INFO));
Przeglądanie stron 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 278 279

Komentarze do niniejszej Instrukcji

Brak uwag