海康威视LED屏DS-TVL224文本语音二次开发代码;
内含数据协议源码;
dll动态链接库开发,调用及其简单。
编程语言:C#
//语音播报
private void button2_Click(object sender, EventArgs e)
{
string err;
Led led = new Led(textBox1.Text,Convert.ToUInt16(textBox2.Text));
led.led_speak(textBox4.Text,out err);
Debug.Print(err);
}
//文本更新
private void button1_Click(object sender, EventArgs e)
{
string err;
Led led = new Led(textBox1.Text, Convert.ToUInt16(textBox2.Text));
Color text_color;
if (radioButton1.Checked)
{
text_color = Color.Red;
}
else
{
text_color = Color.Green;
}
led.led_show(textBox4.Text, text_color, out err);
Debug.Print(err);
}
1