Пример #1
0
static void st7735_write_cmd(struct st7735fb_par *par, u8 data)
{
	int ret = 0;

	/* Set command mode */
	gpio_set_value(par->dc, 0);

	ret = st7735_write(par, data);
	if (ret < 0)
		pr_err("%s: write command %02x failed with status %d\n",
			par->info->fix.id, data, ret);
}
Пример #2
0
static void st7735_cmd(st7735_t *screen, u8 op, int num_params, u8 *params)
{
    st7735_write(screen, 1, &op, 1);
    if (num_params)
        st7735_write(screen, 0, params, num_params);
}