package net.vtstar.zhongtong.avi.ledlamp.test;

public class Test {

    private static String ip = "192.168.1.3";

    public static void main(String[] args) {

//        System.out.println(led.SetBasicInfo(ip, 1, 96, 64));//set LED screen high and width and color
//
//        System.out.println(led.AdjustTime(ip));//adjust time
//
//        System.out.println(led.SetBrightness(ip, 5));//set brightness
//
//
        int hProgram;
        hProgram = led.CreateProgram(128, 32, 2);
        System.out.println("句柄 =" + hProgram);
        int i = led.AddProgram(hProgram, 1, 100, 100);
        System.out.println(i);
        int i1 = led.AddImageTextArea(hProgram, 1, 1, 0, 0, 128, 32, 0);

        //led.AddImageTextArea(hProgram, 1, 1, 0, 0, 128, 32, 0);
//        int tahoma = led.AddDigitalClockArea(hProgram, 1, 1, 0, 0, 128, 32, "Tahoma", 5, 0xff00, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0xff, 0, 0xff, 0, 0xff);

        //      System.out.println(tahoma);
//
//        led.AddFileToImageTextArea(hProgram, 1, 2, "D://1.png", 0, 0, 100);


//        System.out.println(i1);
//        int i2 = led.AddMultiLineTextToImageTextArea(hProgram, 1, 1, 0, "速度    气压\r\n2.2KM/h    ", "Tahoma", 5, 0xff00, 0, 0, 0, 0, 1, 2, 2, 1);
//        System.out.println(i2);
//        led.AddFileToImageTextArea(hProgram, 1, 1, "your file full path", 1, 4, 2);

//        led.AddProgram(hProgram, 2, 0, 1);
//        led.AddImageTextArea(hProgram, 2, 1, 0, 0, 64, 16, 1);
//        led.AddSinglelineTextToImageTextArea(hProgram, 2, 1, 0, "welcome to listen vision", "Tahoma", 12, 0xff, 0, 0, 0, 6, 4, 1);
//
//        led.AddDigitalClockArea(hProgram, 2, 2, 0, 16, 64, 16, "Tahoma", 9, 0xff, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0xff, 0, 0xff, 2, 0xff);

        System.out.println(led.NetWorkSend(ip, hProgram));
        led.DeleteProgram(hProgram);
    }
}
