2015-12-23 05:23:42 +08:00
|
|
|
/* u8g2_d_setup.c */
|
|
|
|
/* generated code, codebuild, u8g2 project */
|
|
|
|
|
|
|
|
#include "u8g2.h"
|
|
|
|
|
|
|
|
/* ssd1306 */
|
|
|
|
/* ssd1306 1 */
|
2015-12-24 06:18:29 +08:00
|
|
|
void u8g2_Setup_ssd1306_128x64_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
2015-12-23 05:23:42 +08:00
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ssd1306_16_1(&tile_buf_height);
|
2016-02-23 01:51:48 +08:00
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
2015-12-23 05:23:42 +08:00
|
|
|
}
|
|
|
|
/* ssd1306 2 */
|
2015-12-24 06:18:29 +08:00
|
|
|
void u8g2_Setup_ssd1306_128x64_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
2015-12-23 05:23:42 +08:00
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ssd1306_16_2(&tile_buf_height);
|
2016-02-23 01:51:48 +08:00
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
2015-12-23 05:23:42 +08:00
|
|
|
}
|
|
|
|
/* ssd1306 f */
|
2015-12-24 06:18:29 +08:00
|
|
|
void u8g2_Setup_ssd1306_128x64_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
2015-12-23 05:23:42 +08:00
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ssd1306_16_f(&tile_buf_height);
|
2016-02-23 01:51:48 +08:00
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
2015-12-23 05:23:42 +08:00
|
|
|
}
|
2016-02-29 05:32:14 +08:00
|
|
|
/* ssd1306 */
|
|
|
|
/* ssd1306 1 */
|
|
|
|
void u8g2_Setup_ssd1306_i2c_128x64_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
2016-03-01 01:04:34 +08:00
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_noname, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb);
|
2016-02-29 05:32:14 +08:00
|
|
|
buf = u8g2_m_ssd1306_16_1(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* ssd1306 2 */
|
|
|
|
void u8g2_Setup_ssd1306_i2c_128x64_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
2016-03-01 01:04:34 +08:00
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_noname, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb);
|
2016-02-29 05:32:14 +08:00
|
|
|
buf = u8g2_m_ssd1306_16_2(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* ssd1306 f */
|
|
|
|
void u8g2_Setup_ssd1306_i2c_128x64_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
2016-03-01 01:04:34 +08:00
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x64_noname, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb);
|
2016-02-29 05:32:14 +08:00
|
|
|
buf = u8g2_m_ssd1306_16_f(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
2016-05-14 04:51:02 +08:00
|
|
|
/* sh1106 */
|
|
|
|
/* sh1106 1 */
|
|
|
|
void u8g2_Setup_sh1106_128x64_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_sh1106_16_1(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* sh1106 2 */
|
|
|
|
void u8g2_Setup_sh1106_128x64_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_sh1106_16_2(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* sh1106 f */
|
|
|
|
void u8g2_Setup_sh1106_128x64_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_noname, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_sh1106_16_f(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* sh1106 */
|
|
|
|
/* sh1106 1 */
|
|
|
|
void u8g2_Setup_sh1106_i2c_128x64_noname_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_noname, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_sh1106_16_1(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* sh1106 2 */
|
|
|
|
void u8g2_Setup_sh1106_i2c_128x64_noname_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_noname, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_sh1106_16_2(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* sh1106 f */
|
|
|
|
void u8g2_Setup_sh1106_i2c_128x64_noname_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_sh1106_128x64_noname, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_sh1106_16_f(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* ssd1306 */
|
|
|
|
/* ssd1306 1 */
|
|
|
|
void u8g2_Setup_ssd1306_128x32_univision_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_univision, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ssd1306_16_1(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* ssd1306 2 */
|
|
|
|
void u8g2_Setup_ssd1306_128x32_univision_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_univision, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ssd1306_16_2(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* ssd1306 f */
|
|
|
|
void u8g2_Setup_ssd1306_128x32_univision_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_univision, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ssd1306_16_f(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* ssd1306 */
|
|
|
|
/* ssd1306 1 */
|
|
|
|
void u8g2_Setup_ssd1306_i2c_128x32_univision_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_univision, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ssd1306_16_1(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* ssd1306 2 */
|
|
|
|
void u8g2_Setup_ssd1306_i2c_128x32_univision_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_univision, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ssd1306_16_2(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* ssd1306 f */
|
|
|
|
void u8g2_Setup_ssd1306_i2c_128x32_univision_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ssd1306_128x32_univision, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ssd1306_16_f(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
2016-06-22 05:23:11 +08:00
|
|
|
/* ld7032 */
|
|
|
|
/* ld7032 1 */
|
|
|
|
void u8g2_Setup_ld7032_60x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32, u8x8_cad_011, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ld7032_8_1(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* ld7032 2 */
|
|
|
|
void u8g2_Setup_ld7032_60x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32, u8x8_cad_011, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ld7032_8_2(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* ld7032 f */
|
|
|
|
void u8g2_Setup_ld7032_60x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32, u8x8_cad_011, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ld7032_8_f(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
2016-06-23 05:58:14 +08:00
|
|
|
/* ld7032 */
|
|
|
|
/* ld7032 1 */
|
|
|
|
void u8g2_Setup_ld7032_i2c_60x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32, u8x8_cad_ld7032_i2c, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ld7032_8_1(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* ld7032 2 */
|
|
|
|
void u8g2_Setup_ld7032_i2c_60x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32, u8x8_cad_ld7032_i2c, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ld7032_8_2(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* ld7032 f */
|
|
|
|
void u8g2_Setup_ld7032_i2c_60x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ld7032_60x32, u8x8_cad_ld7032_i2c, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ld7032_8_f(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
2016-01-04 07:31:49 +08:00
|
|
|
/* st7920 */
|
|
|
|
/* st7920 1 */
|
2016-02-28 02:23:57 +08:00
|
|
|
void u8g2_Setup_st7920_p_192x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
2016-01-04 07:31:49 +08:00
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7920_192x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_st7920_24_1(&tile_buf_height);
|
2016-02-23 04:53:31 +08:00
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
2016-01-04 07:31:49 +08:00
|
|
|
}
|
|
|
|
/* st7920 2 */
|
2016-02-28 02:23:57 +08:00
|
|
|
void u8g2_Setup_st7920_p_192x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
2016-01-04 07:31:49 +08:00
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7920_192x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_st7920_24_2(&tile_buf_height);
|
2016-02-23 04:53:31 +08:00
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
2016-01-04 07:31:49 +08:00
|
|
|
}
|
|
|
|
/* st7920 f */
|
2016-02-28 02:23:57 +08:00
|
|
|
void u8g2_Setup_st7920_p_192x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
2016-01-04 07:31:49 +08:00
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7920_192x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_st7920_24_f(&tile_buf_height);
|
2016-02-23 04:53:31 +08:00
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
2016-01-04 07:31:49 +08:00
|
|
|
}
|
2016-02-28 02:23:57 +08:00
|
|
|
/* st7920 */
|
|
|
|
/* st7920 1 */
|
|
|
|
void u8g2_Setup_st7920_s_192x32_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7920_192x32, u8x8_cad_st7920_spi, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_st7920_24_1(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* st7920 2 */
|
|
|
|
void u8g2_Setup_st7920_s_192x32_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7920_192x32, u8x8_cad_st7920_spi, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_st7920_24_2(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* st7920 f */
|
|
|
|
void u8g2_Setup_st7920_s_192x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7920_192x32, u8x8_cad_st7920_spi, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_st7920_24_f(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* st7920 */
|
|
|
|
/* st7920 1 */
|
|
|
|
void u8g2_Setup_st7920_p_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7920_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_st7920_16_1(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* st7920 2 */
|
|
|
|
void u8g2_Setup_st7920_p_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7920_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_st7920_16_2(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* st7920 f */
|
|
|
|
void u8g2_Setup_st7920_p_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7920_128x64, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_st7920_16_f(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* st7920 */
|
|
|
|
/* st7920 1 */
|
|
|
|
void u8g2_Setup_st7920_s_128x64_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7920_128x64, u8x8_cad_st7920_spi, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_st7920_16_1(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* st7920 2 */
|
|
|
|
void u8g2_Setup_st7920_s_128x64_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7920_128x64, u8x8_cad_st7920_spi, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_st7920_16_2(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* st7920 f */
|
|
|
|
void u8g2_Setup_st7920_s_128x64_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7920_128x64, u8x8_cad_st7920_spi, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_st7920_16_f(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
2016-05-25 04:53:40 +08:00
|
|
|
/* ls013b7dh03 */
|
|
|
|
/* ls013b7dh03 1 */
|
|
|
|
void u8g2_Setup_ls013b7dh03_128x128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
2016-05-25 02:26:46 +08:00
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
2016-05-25 04:53:40 +08:00
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ls013b7dh03_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ls013b7dh03_16_1(&tile_buf_height);
|
2016-05-25 02:26:46 +08:00
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
2016-05-25 04:53:40 +08:00
|
|
|
/* ls013b7dh03 2 */
|
|
|
|
void u8g2_Setup_ls013b7dh03_128x128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
2016-05-25 02:26:46 +08:00
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
2016-05-25 04:53:40 +08:00
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ls013b7dh03_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ls013b7dh03_16_2(&tile_buf_height);
|
2016-05-25 02:26:46 +08:00
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
2016-05-25 04:53:40 +08:00
|
|
|
/* ls013b7dh03 f */
|
|
|
|
void u8g2_Setup_ls013b7dh03_128x128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
2016-05-25 02:26:46 +08:00
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
2016-05-25 04:53:40 +08:00
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_ls013b7dh03_128x128, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_ls013b7dh03_16_f(&tile_buf_height);
|
2016-05-25 02:26:46 +08:00
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_horizontal_right_lsb, rotation);
|
|
|
|
}
|
2015-12-23 05:23:42 +08:00
|
|
|
/* uc1701 */
|
|
|
|
/* uc1701 1 */
|
2016-05-26 16:33:09 +08:00
|
|
|
void u8g2_Setup_uc1701_ea_dogs102_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
2015-12-23 05:23:42 +08:00
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
2016-05-26 16:33:09 +08:00
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_uc1701_ea_dogs102, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
2015-12-23 05:23:42 +08:00
|
|
|
buf = u8g2_m_uc1701_13_1(&tile_buf_height);
|
2016-02-23 01:51:48 +08:00
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
2015-12-23 05:23:42 +08:00
|
|
|
}
|
|
|
|
/* uc1701 2 */
|
2016-05-26 16:33:09 +08:00
|
|
|
void u8g2_Setup_uc1701_ea_dogs102_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
2015-12-23 05:23:42 +08:00
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
2016-05-26 16:33:09 +08:00
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_uc1701_ea_dogs102, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
2015-12-23 05:23:42 +08:00
|
|
|
buf = u8g2_m_uc1701_13_2(&tile_buf_height);
|
2016-02-23 01:51:48 +08:00
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
2015-12-23 05:23:42 +08:00
|
|
|
}
|
|
|
|
/* uc1701 f */
|
2016-05-26 16:33:09 +08:00
|
|
|
void u8g2_Setup_uc1701_ea_dogs102_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
2015-12-23 05:23:42 +08:00
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
2016-05-26 16:33:09 +08:00
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_uc1701_ea_dogs102, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
2015-12-23 05:23:42 +08:00
|
|
|
buf = u8g2_m_uc1701_13_f(&tile_buf_height);
|
2016-02-23 01:51:48 +08:00
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
2015-12-23 05:23:42 +08:00
|
|
|
}
|
2016-05-26 14:31:29 +08:00
|
|
|
/* st7565 */
|
|
|
|
/* st7565 1 */
|
2016-05-26 16:33:09 +08:00
|
|
|
void u8g2_Setup_st7565_ea_dogm128_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
2016-05-26 14:31:29 +08:00
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
2016-05-26 16:33:09 +08:00
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7565_ea_dogm128, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
2016-05-26 14:31:29 +08:00
|
|
|
buf = u8g2_m_st7565_16_1(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* st7565 2 */
|
2016-05-26 16:33:09 +08:00
|
|
|
void u8g2_Setup_st7565_ea_dogm128_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
2016-05-26 14:31:29 +08:00
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
2016-05-26 16:33:09 +08:00
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7565_ea_dogm128, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
2016-05-26 14:31:29 +08:00
|
|
|
buf = u8g2_m_st7565_16_2(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* st7565 f */
|
2016-05-26 16:33:09 +08:00
|
|
|
void u8g2_Setup_st7565_ea_dogm128_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
2016-05-26 14:31:29 +08:00
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
2016-05-26 16:33:09 +08:00
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7565_ea_dogm128, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_st7565_16_f(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* st7565 */
|
|
|
|
/* st7565 1 */
|
|
|
|
void u8g2_Setup_st7565_nhd_c12832_1(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7565_nhd_c12832, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_st7565_16_1(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* st7565 2 */
|
|
|
|
void u8g2_Setup_st7565_nhd_c12832_2(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7565_nhd_c12832, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
|
|
|
buf = u8g2_m_st7565_16_2(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
|
|
|
/* st7565 f */
|
|
|
|
void u8g2_Setup_st7565_nhd_c12832_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
|
|
|
|
{
|
|
|
|
uint8_t tile_buf_height;
|
|
|
|
uint8_t *buf;
|
|
|
|
u8g2_SetupDisplay(u8g2, u8x8_d_st7565_nhd_c12832, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
|
2016-05-26 14:31:29 +08:00
|
|
|
buf = u8g2_m_st7565_16_f(&tile_buf_height);
|
|
|
|
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
|
|
|
|
}
|
2015-12-23 05:23:42 +08:00
|
|
|
/* end of generated code */
|