Nano Every U8x8 slower than NANO V3

The graphicsTest example from U8G2->U8X8 run much slower on the EVERY (4809) compared to the NANO V3 (328).

Any Hint ?

My display is configured as:

  #define CL          4
  #define DA          3
  #define CS          10
  #define DC          8
  #define RES         9

U8X8_ST7565_JLX12864_4W_SW_SPI u8x8(CL, DA, CS, DC, RES);

TY, Simone.

Yes, U8g2lib is slower for bit-bashed SPI on the EVERY.

I ran an animation and compared the sequence time:

Nano ATmega328P     HWSPI   1993 ms
Nano ATmega328P     SWSPI   2156 ms
Nano EVERY          HWSPI   1987 ms
Nano EVERY          SWSPI   6870 ms
Nano LGT8F328P      HWSPI   1527 ms
Nano LGT8F328P      SWSPI   1627 ms

I used constructors:

U8G2_SSD1306_128X64_NONAME_F_4W_HW_SPI u8g2(U8G2_R0, 10, 9, 8);    // 
U8G2_SSD1306_128X64_NONAME_F_4W_SW_SPI u8g2(U8G2_R0, 13, 11, 10, 9, 8);    //

Why have you chosen to use SW_SPI ?
It is much wiser to use the Hardware SPI. After all, that is what it was designed for.

I am sure that Oliver could tweak the EVERY bit-bash code. It should actually work faster than the regular Nano.

Incidentally, the Every board does the same animation in 503 ms with Adafruit_SSD1306 library (HW_SPI).

David.

tnks for the reply david.

The choice of the soft spi is becouse of the actual pcb design of my application. I think i need to redesign it to handle HW SPI.

david_prentice:
Yes, U8g2lib is slower for bit-bashed SPI on the EVERY.

I ran an animation and compared the sequence time:

Nano ATmega328P     HWSPI   1993 ms

Nano ATmega328P    SWSPI  2156 ms
Nano EVERY          HWSPI  1987 ms
Nano EVERY          SWSPI  6870 ms
Nano LGT8F328P      HWSPI  1527 ms
Nano LGT8F328P      SWSPI  1627 ms



I used constructors:


U8G2_SSD1306_128X64_NONAME_F_4W_HW_SPI u8g2(U8G2_R0, 10, 9, 8);    //
U8G2_SSD1306_128X64_NONAME_F_4W_SW_SPI u8g2(U8G2_R0, 13, 11, 10, 9, 8);    //




Why have you chosen to use SW_SPI ?
It is much wiser to use the Hardware SPI. After all, that is what it was designed for.

I am sure that Oliver could tweak the EVERY bit-bash code. It should actually work faster than the regular Nano.


Incidentally, the Every board does the same animation in 503 ms with Adafruit_SSD1306 library (HW_SPI).

David.