Exemplo n.º 1
0
        // init stuff
        static public void InitDevice()
        {
            // init aPP
            Boolean init = LogitechGSDK.LogiLcdInit(appletName, LogitechGSDK.LOGI_LCD_TYPE_COLOR);

            WriteDebugMessage("Initial status: " + init);

            // check for connection
            if (init == false)
            {
                Console.WriteLine("No device found, please check connection");
                Console.WriteLine();
                Console.WriteLine("Press any key to exit...");
                Console.ReadKey();
                Environment.Exit(0);
            }

            // hide console if no debug
            var handle = GetConsoleWindow();

            if (debugOn)
            {
                WriteDebugMessage("Connect status: " + LogitechGSDK.LogiLcdIsConnected(LogitechGSDK.LOGI_LCD_TYPE_COLOR));
            }
            else
            {
                ShowWindow(handle, SW_HIDE);
            }

            // set background
            SetBackground();
        }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        LogitechGSDK.LogiLcdInit("UNITY_TEST", 3);

        LogitechGSDK.LogiLcdColorSetTitle("Testing", 255, 0, 0);
        LogitechGSDK.LogiLcdColorSetText(0, "zero", 255, 255, 0);
        LogitechGSDK.LogiLcdColorSetText(1, "first", 0, 255, 0);
        LogitechGSDK.LogiLcdColorSetText(2, "second", 0, 255, 30);
        LogitechGSDK.LogiLcdColorSetText(3, "third", 0, 255, 50);
        LogitechGSDK.LogiLcdColorSetText(4, "fourth", 0, 255, 90);
        LogitechGSDK.LogiLcdColorSetText(5, "fifth", 0, 255, 140);
        LogitechGSDK.LogiLcdColorSetText(6, "sixth", 0, 255, 200);
        LogitechGSDK.LogiLcdColorSetText(7, "seventh", 0, 255, 255);
        LogitechGSDK.LogiLcdColorSetText(8, "eight", 0, 255, 255);

        LogitechGSDK.LogiLcdMonoSetText(0, "testing");
        LogitechGSDK.LogiLcdMonoSetText(1, "mono");
        LogitechGSDK.LogiLcdMonoSetText(2, "chrome");
        LogitechGSDK.LogiLcdMonoSetText(3, "lcd");
    }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     LogitechGSDK.LogiLcdInit("14K3N37", 3);
 }