fgcx 发表于 2011-12-18 15:42:45

setup.c中的含义是什么?????????

setup_TypeDef radio_setup;

static const charkn_volume[]      = "default_volume";
static const charkn_brightness[]= "lcd_brightness";
static const charkn_touch_min_x[] = "touch_min_x";
static const charkn_touch_max_x[] = "touch_max_x";
static const charkn_touch_min_y[] = "touch_min_y";   与下面的相同变量的关系是什么???
static const charkn_touch_max_y[] = "touch_max_y";

void load_default(void)
{
    rt_kprintf("load_default!\r\n");
    radio_setup.default_volume = 25;
    radio_setup.lcd_brightness = 50;

    radio_setup.touch_min_x = 194;
    radio_setup.touch_max_x = 1810;   这几行数值表示是什么?屏幕不是240*320吗??
    radio_setup.touch_min_y = 147;
    radio_setup.touch_max_y = 1850;

    save_setup();
}

Alimy 发表于 2011-12-18 15:46:44

触摸屏需要校准。
那几行数值就是校准值吧?。

aozima 发表于 2011-12-18 15:52:32

给楼主提个建议: 不要把BBS当成有问必答机。

ffxz 发表于 2011-12-18 20:00:56

给楼主个建议,其实问号不必这么多。这么多问号只有感叹号
页: [1]
查看完整版本: setup.c中的含义是什么?????????