前言

之前一直是用C#在Windows平台编写软件,这次整个不一样的,使用一个嵌入式非常流行的GUI框架 LVGL来编写,其中用到的库有pthread,libconfig,serial_lite,freetype 这几个库都是跨平台的,用的是C或者C++编写,所以可以运行于任何平台

相关库

lvgl, freetype, libconfig, serial_lite

软件功能

如果有购买SNAPAV 70Mini 型号的功放,可以下载此软件进行控制,支持音量调节,信号源切换等操作

配置文件

这里给出配置文件,支持多语言,支持更换字体

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#语言配置
lang = "zh-CN";
#font = "C:\WINDOWS\FONTS\simkai.ttf";
font = "yayuan.ttf";
#中文
zh-CN = {
label_connect = "点击连接";
label_disconnect = "点击断开";
label_clear = "清空";
label_port = "通信端口";
label_btn = ["电源打开","电源关闭","输出打开","输出关闭","平衡输入","耳机输入","RCA 输入","混合输入","信号触发","音量最大","音量增加","音量中间","音量减小","音量最小","功放静音","音量状态","电源状态","系统版本"," 恢复设置到出厂状态 "];
tips_1 = "端口未打开!";
};
#英文
en-US = {
label_connect = "Connect";
label_disconnect = "Disconnect";
label_clear = "Clean";
label_port = "Port Select";
label_btn = ["Power ON","Power OFF","Output ON","Output OFF","Blance In","3.5mm In","RCA In","Mux In","Signal Tri","VOl Max","Vol up","Vol Mid","Vol down","Vol Min","Mute","Amp Status","Pwr Status","Sys Version"," Factory Reset "];
tips_1 = "Serial not opened!";
};

功放介绍

Episode® 70V Digital Amplifier

Don’t judge a product by its size – the Episode® 70V Digital Amplifier 60W with IR & RS232 may be small, but it packs a punch. This amplifier is perfect for boosting sound and delivering extraordinary audio quality to even the smallest of TVs in restaurants, bars, or small conference rooms, or to maximize the sound of outdoor speakers. This single-channel 70V amplifier is equipped with three inputs and an external 12VDC power supply.

  • Multiple Inputs

    A total of three inputs enable connection to a variety of sources, including microphone input or other analog sources. An integrated mixer blends all sources by default – perfect for background music and paging applications. It also has the flexibility to select discrete input source.

  • USB Firmware Update

    With the provided USB port, firmware updates are effortless. Simply load the firmware file provided under the “Support” tab to a USB thumb drive and plug into the USB port on the amp for an automatic update. Note: Please unzip the downloaded file and store under the root folder of the thumb drive. Do not change the file name.

  • Easy Command Programming

    Defined as a data communication device, this amplifier has the option to be controlled via IR and RS-232. With the control protocol we’ve provided under the “Support” tab, this amplifier delivers the flexibility to function with any IR or serial control system.

  • LED Indicator

    The rear panel LED meter indicates the amplifier’s operational status. A blinking red LED easily identifies if there is a wiring/connectivity fault or a dead short. The amplifier will automatically shut down the output to protect itself from further damage.

  • Plenum Rated

    This amplifier meets the UL 2043 requirements for both heat and smoke release, and can be installed out-of-sight in the plenum space. The mounting ears, provided, also give it the flexibility to be easily placed in a VersaBox. Locking-type screw terminals ensure a secure connection and simplified install.

  • Digital Volume Encoder

    A digital spinning dial sends volume up and down commands to the amplifier for exceptional output volume.

  • Powerful Support

    This versatile, single-channel amplifier supports 70V with a robust 60 Watts of power, handling multiple speakers with ease.

ECA-70MINI-60W-Manual_160112_1035.pdf

软件下载

此处是编译好的程序

工程太大无法上传,此处是源码