From 995c72518007424113c2b989702929c51fb0e455 Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Mon, 11 Feb 2019 09:11:23 -0600 Subject: [PATCH] ssd1306_128x32: remove unreferenced static definitions The presence of these produce "defined but not used" diagnostics that cause builds to fail when `-Werror` is used. Signed-off-by: Peter A. Bigot --- csrc/u8x8_d_ssd1306_128x32.c | 91 ------------------------------------ 1 file changed, 91 deletions(-) diff --git a/csrc/u8x8_d_ssd1306_128x32.c b/csrc/u8x8_d_ssd1306_128x32.c index b4adec6c..70c9b4f9 100644 --- a/csrc/u8x8_d_ssd1306_128x32.c +++ b/csrc/u8x8_d_ssd1306_128x32.c @@ -217,97 +217,6 @@ uint8_t u8x8_d_ssd1306_128x32_univision(u8x8_t *u8x8, uint8_t msg, uint8_t arg_i #define ADDR_MODE 0 //0:horizontal, 1:vertical, 2:page -/* From WEO012832DWPP3N00000 Datasheet and Winstar Example Constructors */ -static const uint8_t u8x8_d_ssd1306_128x32_winstar_init_seq[] = { - - U8X8_START_TRANSFER(), // enable chip, delay is part of the transfer start - - //*/taken from WEO012832.c example provided by Winstar as an example - U8X8_C(0x8D), - U8X8_C(0x14), //Enable embedded DC/DC converter - - U8X8_C(0xae), // display off - - U8X8_C(0xd5), - U8X8_C(0xA0), // display clock - - U8X8_C(0x0a8), - U8X8_C(0x01f), // multiplex ratio - - U8X8_C(0xd3), - U8X8_C(0x00), // display offset - - U8X8_C(0x40), //start line - - U8X8_C(0x00), //Set Lower Column Start Address for Page Addressing Mode efault => 0x00 - U8X8_C(0x10), //Set Higher Column Start Address for Page Addressing Mode;Default => 0x10 - - U8X8_C(0xA1), //segment remapping - - U8X8_C(0xC8), //Com/Row scan direction - - U8X8_C(0xDA), - U8X8_C(0x02), //Set alternative configuration - - U8X8_C(0x91), - U8X8_C(0x3F), - U8X8_C(0x3F), - U8X8_C(0x3F), - U8X8_C(0x3F), - - U8X8_C(0x81), - U8X8_C(0x30), //Set SEG output current - - U8X8_C(0xD9), - U8X8_C(0x77), //set precharge as 15 clocks and discharge as 1 clock - - U8X8_C(0xDB), - U8X8_C(0x00), //set VCOM Deselect level - - U8X8_C(0xA4), //set entire display on - - U8X8_C(0xA6), //Disable reverse display on - - U8X8_C(0xAF), //display on - //*/ - - - U8X8_END_TRANSFER(), // disable chip - U8X8_END() // end of sequence -}; - -static const uint8_t u8x8_d_ssd1306_128x32_winstar_powersave0_seq[] = { - U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ - U8X8_C(0x0af), /* display on */ - U8X8_END_TRANSFER(), /* disable chip */ - U8X8_END() /* end of sequence */ -}; - -static const uint8_t u8x8_d_ssd1306_128x32_winstar_powersave1_seq[] = { - U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ - U8X8_C(0x0ae), /* display off */ - U8X8_END_TRANSFER(), /* disable chip */ - U8X8_END() /* end of sequence */ -}; - -static const uint8_t u8x8_d_ssd1306_128x32_winstar_flip0_seq[] = { - U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ - U8X8_C(0x0a1), /* segment remap a0/a1*/ - U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ - U8X8_END_TRANSFER(), /* disable chip */ - U8X8_END() /* end of sequence */ -}; - -static const uint8_t u8x8_d_ssd1306_128x32_winstar_flip1_seq[] = { - U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ - U8X8_C(0x0a0), /* segment remap a0/a1*/ - U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ - U8X8_END_TRANSFER(), /* disable chip */ - U8X8_END() /* end of sequence */ -}; - - - static const u8x8_display_info_t u8x8_ssd1306_128x32_winstar_display_info = { /* chip_enable_level = */ 0,