olikraus / U8glib_Arduino

U8glib library for Arduino
Other
161 stars 84 forks source link

HW SPI for st7920 for Arduino Due #13

Open ghost opened 7 years ago

ghost commented 7 years ago

Why disabled Hardware SPI for st7920 on Arduino Due ? u8g.h:

# elif defined(**SAM3X8E**)   /\* Arduino Due */
# define U8G_COM_HW_SPI u8g_com_arduino_hw_spi_fn
# define U8G_COM_ST7920_HW_SPI u8g_com_null_fn
# endif

This hardware work fine in both hardware and software SPI mode for u8g2 lib !

P.S. Need for support ReprapWorld Graphical LCD screen v1.0 on Ultratronics Pro v1.0 (Arduino Due based) in Marlin MK4Duo Firmware

olikraus commented 7 years ago

One of the major changes for u8g2 had been the support for SPI,h In u8glib all hardware support was manually coded without (SPI.h). However this support was not there for Due. This means you should upgrade to u8g2. HW SPI support will only be there with U8g2 (via SPI.h)