implementation issue #48

This commit is contained in:
olikraus 2016-08-17 21:01:03 +02:00
parent f694b6a115
commit 9cc2909dc9
21 changed files with 44 additions and 5 deletions

View File

@ -29,5 +29,7 @@ https://github.com/olikraus/u8g2 ChangeLog
2016-xx-xx v2.2.x olikraus@gmail.com 2016-xx-xx v2.2.x olikraus@gmail.com
* U8x8: Upscale by 2 (Issue 41) * U8x8: Upscale by 2 (Issue 41)
* Fixed SSD1306 I2C procedures (mirror pixel in last tile column, issue 44) * Fixed SSD1306 I2C procedures (mirror pixel in last tile column, issue 44)
* Experimental support für mini12864 (pull request)
* Use beginTransaction for SPI. This requires Arduino 1.6.0

View File

@ -280,9 +280,13 @@ extern "C" uint8_t u8x8_byte_arduino_hw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t a
/* no wait required here */ /* no wait required here */
/* for SPI: setup correct level of the clock signal */ /* for SPI: setup correct level of the clock signal */
pinMode(11, OUTPUT); // removed, use SPI.begin() instead: pinMode(11, OUTPUT);
pinMode(13, OUTPUT); // removed, use SPI.begin() instead: pinMode(13, OUTPUT);
digitalWrite(13, u8x8_GetSPIClockPhase(u8x8)); // removed, use SPI.begin() instead: digitalWrite(13, u8x8_GetSPIClockPhase(u8x8));
/* setup hardware with SPI.begin() instead of previous digitalWrite() and pinMode() calls */
SPI.begin();
break; break;
case U8X8_MSG_BYTE_SET_DC: case U8X8_MSG_BYTE_SET_DC:
@ -290,6 +294,9 @@ extern "C" uint8_t u8x8_byte_arduino_hw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t a
break; break;
case U8X8_MSG_BYTE_START_TRANSFER: case U8X8_MSG_BYTE_START_TRANSFER:
#if ARDUINO >= 10600
SPI.beginTransaction(SPISettings(u8x8->display_info->sck_clock_hz, MSBFIRST, u8x8->display_info->spi_mode));
#else
SPI.begin(); SPI.begin();
if ( u8x8->display_info->sck_pulse_width_ns < 70 ) if ( u8x8->display_info->sck_pulse_width_ns < 70 )
@ -300,6 +307,7 @@ extern "C" uint8_t u8x8_byte_arduino_hw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t a
SPI.setClockDivider( SPI_CLOCK_DIV8 ); SPI.setClockDivider( SPI_CLOCK_DIV8 );
SPI.setDataMode(u8x8->display_info->spi_mode); SPI.setDataMode(u8x8->display_info->spi_mode);
SPI.setBitOrder(MSBFIRST); SPI.setBitOrder(MSBFIRST);
#endif
u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_enable_level); u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_enable_level);
u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL); u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL);
@ -309,7 +317,11 @@ extern "C" uint8_t u8x8_byte_arduino_hw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t a
u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL); u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL);
u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level); u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level);
#if ARDUINO >= 10600
SPI.endTransaction();
#else
SPI.end(); SPI.end();
#endif
break; break;
default: default:

View File

@ -211,6 +211,9 @@ struct u8x8_display_info_struct
/* AVR: below 70: DIV2, 8 MHz, >= 70 --> 4MHz clock (DIV4) */ /* AVR: below 70: DIV2, 8 MHz, >= 70 --> 4MHz clock (DIV4) */
uint8_t sck_pulse_width_ns; /* UC1701: 50ns */ uint8_t sck_pulse_width_ns; /* UC1701: 50ns */
/* until here we have 8 bytes (uint8_t). Newly introduced for SPI.beginTransaction */
uint32_t sck_clock_hz;
/* previous name "sck_takeover_edge" renamed to "spi_mode" */ /* previous name "sck_takeover_edge" renamed to "spi_mode" */
/* bit 0 of spi_mode is equal to the value of the previous variable sck_takeover_edge */ /* bit 0 of spi_mode is equal to the value of the previous variable sck_takeover_edge */
/* SPI has four clock modes: */ /* SPI has four clock modes: */

View File

@ -149,6 +149,7 @@ static const u8x8_display_info_t u8x8_a2printer_384x240_display_info =
/* post_reset_wait_ms = */ 6, /* post_reset_wait_ms = */ 6,
/* sda_setup_time_ns = */ 20, /* sda_setup_time_ns = */ 20,
/* sck_pulse_width_ns = */ 140, /* sck_pulse_width_ns = */ 140,
/* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* old: sck_takeover_edge, new: active high (bit 1), rising edge (bit 0) */ /* spi_mode = */ 1, /* old: sck_takeover_edge, new: active high (bit 1), rising edge (bit 0) */
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 30, /* data_setup_time_ns = */ 30,

View File

@ -181,6 +181,7 @@ static const u8x8_display_info_t u8x8_ld7032_60x32_display_info =
/* post_reset_wait_ms = */ 100, /* post_reset_wait_ms = */ 100,
/* sda_setup_time_ns = */ 30, /* 20ns, but cycle time is 60ns, so use 60/2 */ /* sda_setup_time_ns = */ 30, /* 20ns, but cycle time is 60ns, so use 60/2 */
/* sck_pulse_width_ns = */ 30, /* 20ns, but cycle time is 60ns, so use 60/2 */ /* sck_pulse_width_ns = */ 30, /* 20ns, but cycle time is 60ns, so use 60/2 */
/* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* active high, rising edge */ /* spi_mode = */ 1, /* active high, rising edge */
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 20, /* data_setup_time_ns = */ 20,

View File

@ -54,6 +54,7 @@ static const u8x8_display_info_t u8x8_ls013b7dh03_128x128_display_info =
/* post_reset_wait_ms = */ 6, /* post_reset_wait_ms = */ 6,
/* sda_setup_time_ns = */ 227, /* 227 nsec according to the datasheet */ /* sda_setup_time_ns = */ 227, /* 227 nsec according to the datasheet */
/* sck_pulse_width_ns = */ 255, /* 450 nsec according to the datasheet */ /* sck_pulse_width_ns = */ 255, /* 450 nsec according to the datasheet */
/* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 3, /* active low, rising edge */ /* spi_mode = */ 3, /* active low, rising edge */
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 100, /* data_setup_time_ns = */ 100,

View File

@ -125,6 +125,7 @@ static const u8x8_display_info_t u8x8_sed1330_240x128_display_info =
/* post_reset_wait_ms = */ 6, /* post_reset_wait_ms = */ 6,
/* sda_setup_time_ns = */ 20, /* sda_setup_time_ns = */ 20,
/* sck_pulse_width_ns = */ 140, /* sck_pulse_width_ns = */ 140,
/* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* spi_mode = */ 1,
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 120, /* G242CX Datasheet p5 */ /* data_setup_time_ns = */ 120, /* G242CX Datasheet p5 */

View File

@ -188,6 +188,7 @@ static const u8x8_display_info_t u8x8_ssd1306_128x32_univision_display_info =
/* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */
/* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */
/* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */
/* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* active high, rising edge */ /* spi_mode = */ 1, /* active high, rising edge */
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 40, /* data_setup_time_ns = */ 40,

View File

@ -188,6 +188,7 @@ static const u8x8_display_info_t u8x8_ssd1306_128x64_noname_display_info =
/* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */
/* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */
/* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */
/* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* active high, rising edge */ /* spi_mode = */ 1, /* active high, rising edge */
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 40, /* data_setup_time_ns = */ 40,
@ -222,6 +223,7 @@ static const u8x8_display_info_t u8x8_sh1106_128x64_noname_display_info =
/* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */
/* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */ /* sda_setup_time_ns = */ 50, /* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */
/* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */
/* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* active high, rising edge */ /* spi_mode = */ 1, /* active high, rising edge */
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 40, /* data_setup_time_ns = */ 40,

View File

@ -198,6 +198,7 @@ static const u8x8_display_info_t u8x8_ssd1322_256x64_display_info =
/* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */ /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */
/* sda_setup_time_ns = */ 50, /* SSD1322: 15ns, but cycle time is 100ns, so use 100/2 */ /* sda_setup_time_ns = */ 50, /* SSD1322: 15ns, but cycle time is 100ns, so use 100/2 */
/* sck_pulse_width_ns = */ 50, /* SSD1322: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_pulse_width_ns = */ 50, /* SSD1322: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */
/* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* active high, rising edge */ /* spi_mode = */ 1, /* active high, rising edge */
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 10, /* data_setup_time_ns = */ 10,

View File

@ -81,6 +81,7 @@ static const u8x8_display_info_t u8x8_st7565_128x64_display_info =
/* post_reset_wait_ms = */ 1, /* post_reset_wait_ms = */ 1,
/* sda_setup_time_ns = */ 50, /* st7565 datasheet, table 26, tsds */ /* sda_setup_time_ns = */ 50, /* st7565 datasheet, table 26, tsds */
/* sck_pulse_width_ns = */ 120, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_pulse_width_ns = */ 120, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */
/* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* active high, rising edge */ /* spi_mode = */ 1, /* active high, rising edge */
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 40, /* st7565 datasheet, table 24, tds8 */ /* data_setup_time_ns = */ 40, /* st7565 datasheet, table 24, tds8 */
@ -104,6 +105,7 @@ static const u8x8_display_info_t u8x8_st7565_128x32_display_info =
/* post_reset_wait_ms = */ 1, /* post_reset_wait_ms = */ 1,
/* sda_setup_time_ns = */ 50, /* st7565 datasheet, table 26, tsds */ /* sda_setup_time_ns = */ 50, /* st7565 datasheet, table 26, tsds */
/* sck_pulse_width_ns = */ 120, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_pulse_width_ns = */ 120, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */
/* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* active high, rising edge */ /* spi_mode = */ 1, /* active high, rising edge */
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 40, /* st7565 datasheet, table 24, tds8 */ /* data_setup_time_ns = */ 40, /* st7565 datasheet, table 24, tds8 */

View File

@ -156,6 +156,7 @@ static const u8x8_display_info_t u8x8_st7920_192x32_display_info =
/* post_reset_wait_ms = */ 6, /* post_reset_wait_ms = */ 6,
/* sda_setup_time_ns = */ 20, /* sda_setup_time_ns = */ 20,
/* sck_pulse_width_ns = */ 140, /* datasheet ST7920 */ /* sck_pulse_width_ns = */ 140, /* datasheet ST7920 */
/* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* old: sck_takeover_edge, new: active high (bit 1), rising edge (bit 0) */ /* spi_mode = */ 1, /* old: sck_takeover_edge, new: active high (bit 1), rising edge (bit 0) */
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 30, /* data_setup_time_ns = */ 30,
@ -179,6 +180,7 @@ static const u8x8_display_info_t u8x8_st7920_128x64_display_info =
/* post_reset_wait_ms = */ 6, /* post_reset_wait_ms = */ 6,
/* sda_setup_time_ns = */ 20, /* sda_setup_time_ns = */ 20,
/* sck_pulse_width_ns = */ 140, /* datasheet ST7920 */ /* sck_pulse_width_ns = */ 140, /* datasheet ST7920 */
/* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* active high, rising edge */ /* spi_mode = */ 1, /* active high, rising edge */
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 30, /* data_setup_time_ns = */ 30,

View File

@ -134,6 +134,7 @@ static const u8x8_display_info_t u8x8_t6963_240x128_display_info =
/* post_reset_wait_ms = */ 6, /* post_reset_wait_ms = */ 6,
/* sda_setup_time_ns = */ 20, /* sda_setup_time_ns = */ 20,
/* sck_pulse_width_ns = */ 140, /* sck_pulse_width_ns = */ 140,
/* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* spi_mode = */ 1,
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 80, /* data_setup_time_ns = */ 80,
@ -220,6 +221,7 @@ static const u8x8_display_info_t u8x8_t6963_256x64_display_info =
/* post_reset_wait_ms = */ 6, /* post_reset_wait_ms = */ 6,
/* sda_setup_time_ns = */ 20, /* sda_setup_time_ns = */ 20,
/* sck_pulse_width_ns = */ 140, /* sck_pulse_width_ns = */ 140,
/* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* spi_mode = */ 1,
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 80, /* data_setup_time_ns = */ 80,
@ -302,6 +304,7 @@ static const u8x8_display_info_t u8x8_t6963_128x64_display_info =
/* post_reset_wait_ms = */ 6, /* post_reset_wait_ms = */ 6,
/* sda_setup_time_ns = */ 20, /* sda_setup_time_ns = */ 20,
/* sck_pulse_width_ns = */ 140, /* sck_pulse_width_ns = */ 140,
/* sck_clock_hz = */ 1000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* spi_mode = */ 1,
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 80, /* data_setup_time_ns = */ 80,

View File

@ -107,6 +107,7 @@ static const u8x8_display_info_t u8x8_uc1701_display_info =
/* post_reset_wait_ms = */ 6, /* post_reset_wait_ms = */ 6,
/* sda_setup_time_ns = */ 12, /* sda_setup_time_ns = */ 12,
/* sck_pulse_width_ns = */ 75, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_pulse_width_ns = */ 75, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */
/* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* active high, rising edge */ /* spi_mode = */ 1, /* active high, rising edge */
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 30, /* data_setup_time_ns = */ 30,

View File

@ -108,6 +108,7 @@ static const u8x8_display_info_t u8x8_uc1701_display_info =
/* post_reset_wait_ms = */ 6, /* post_reset_wait_ms = */ 6,
/* sda_setup_time_ns = */ 12, /* sda_setup_time_ns = */ 12,
/* sck_pulse_width_ns = */ 75, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_pulse_width_ns = */ 75, /* half of cycle time (100ns according to datasheet), AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */
/* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* active high, rising edge */ /* spi_mode = */ 1, /* active high, rising edge */
/* i2c_bus_clock_100kHz = */ 4, /* i2c_bus_clock_100kHz = */ 4,
/* data_setup_time_ns = */ 30, /* data_setup_time_ns = */ 30,

View File

@ -61,7 +61,7 @@
//U8G2_SSD1306_128X64_NONAME_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 12, /* dc=*/ 4, /* reset=*/ 6); // Arduboy (Production, Kickstarter Edition) //U8G2_SSD1306_128X64_NONAME_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 12, /* dc=*/ 4, /* reset=*/ 6); // Arduboy (Production, Kickstarter Edition)
//U8G2_SSD1306_128X64_NONAME_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1306_128X64_NONAME_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
//U8G2_SSD1306_128X64_NONAME_1_3W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* reset=*/ 8); //U8G2_SSD1306_128X64_NONAME_1_3W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* reset=*/ 8);
U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* reset=*/ 8); //U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* reset=*/ 8);
//U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // All Boards without Reset of the Display //U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // All Boards without Reset of the Display
//U8G2_SSD1306_128X64_NONAME_1_6800 u8g2(U8G2_R0, 13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8); //U8G2_SSD1306_128X64_NONAME_1_6800 u8g2(U8G2_R0, 13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8);
//U8G2_SSD1306_128X64_NONAME_1_8080 u8g2(U8G2_R0, 13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8); //U8G2_SSD1306_128X64_NONAME_1_8080 u8g2(U8G2_R0, 13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8);

View File

@ -194,6 +194,7 @@ static const u8x8_display_info_t u8x8_sdl_128x64_info =
/* post_reset_wait_ms = */ 0, /* post_reset_wait_ms = */ 0,
/* sda_setup_time_ns = */ 0, /* sda_setup_time_ns = */ 0,
/* sck_pulse_width_ns = */ 0, /* sck_pulse_width_ns = */ 0,
/* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* spi_mode = */ 1,
/* i2c_bus_clock_100kHz = */ 0, /* i2c_bus_clock_100kHz = */ 0,
/* data_setup_time_ns = */ 0, /* data_setup_time_ns = */ 0,

View File

@ -201,6 +201,7 @@ static const u8x8_display_info_t u8x8_tga_desc_info =
/* post_reset_wait_ms = */ 0, /* post_reset_wait_ms = */ 0,
/* sda_setup_time_ns = */ 0, /* sda_setup_time_ns = */ 0,
/* sck_pulse_width_ns = */ 0, /* sck_pulse_width_ns = */ 0,
/* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* spi_mode = */ 1,
/* i2c_bus_clock_100kHz = */ 0, /* i2c_bus_clock_100kHz = */ 0,
/* data_setup_time_ns = */ 0, /* data_setup_time_ns = */ 0,
@ -306,6 +307,7 @@ static const u8x8_display_info_t u8x8_tga_lcd_info =
/* post_reset_wait_ms = */ 0, /* post_reset_wait_ms = */ 0,
/* sda_setup_time_ns = */ 0, /* sda_setup_time_ns = */ 0,
/* sck_pulse_width_ns = */ 0, /* sck_pulse_width_ns = */ 0,
/* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* spi_mode = */ 1,
/* i2c_bus_clock_100kHz = */ 0, /* i2c_bus_clock_100kHz = */ 0,
/* data_setup_time_ns = */ 0, /* data_setup_time_ns = */ 0,

View File

@ -143,6 +143,7 @@ static const u8x8_display_info_t u8x8_utf8_info =
/* post_reset_wait_ms = */ 0, /* post_reset_wait_ms = */ 0,
/* sda_setup_time_ns = */ 0, /* sda_setup_time_ns = */ 0,
/* sck_pulse_width_ns = */ 0, /* sck_pulse_width_ns = */ 0,
/* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* spi_mode = */ 1,
/* i2c_bus_clock_100kHz = */ 0, /* i2c_bus_clock_100kHz = */ 0,
/* data_setup_time_ns = */ 0, /* data_setup_time_ns = */ 0,

View File

@ -184,6 +184,7 @@ static const u8x8_display_info_t u8x8_tga_info =
/* post_reset_wait_ms = */ 0, /* post_reset_wait_ms = */ 0,
/* sda_setup_time_ns = */ 0, /* sda_setup_time_ns = */ 0,
/* sck_pulse_width_ns = */ 0, /* sck_pulse_width_ns = */ 0,
/* sck_clock_hz = */ 4000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */
/* spi_mode = */ 1, /* spi_mode = */ 1,
/* i2c_bus_clock_100kHz = */ 0, /* i2c_bus_clock_100kHz = */ 0,
/* data_setup_time_ns = */ 0, /* data_setup_time_ns = */ 0,

View File

@ -1,2 +1,2 @@
# without 'v' prefix # without 'v' prefix
echo -n "2.2.5" echo -n "2.2.6"