Commit Graph

4 Commits

Author SHA1 Message Date
Markus Hitter 1d4ebbd7fa Display: queue up display_set_cursor(), too. 2016-05-30 10:59:12 +02:00
Markus Hitter 8d7471d3a4 Display: display_clear() is a common command now.
Before control commands were queued up, this was different for
each display.
2016-05-30 10:50:41 +02:00
Markus Hitter 5b9e123e0e Display: queue up display clear commands. 2016-05-30 10:32:33 +02:00
Markus Hitter da0d5aec2c Display: add support for the HD44780 display.
All in one chunk because the infrastructure is already there.
This also implements the parallel 4-bit bus used by quite some
displays.

For now you have to add quite a number of #defines to your
config.h. First, there are all the pins required, pin names
changed to your actual board/display connection, of course:

  #define DISPLAY_RS_PIN       PC1
  #define DISPLAY_RW_PIN       PC0
  #define DISPLAY_E_PIN        PD2
  #define DISPLAY_D4_PIN       PD3
  #define DISPLAY_D5_PIN       PD4
  #define DISPLAY_D6_PIN       PD5
  #define DISPLAY_D7_PIN       PD6

And then the information about the display actually existing:

  #define DISPLAY_BUS_4BIT
  #define DISPLAY_TYPE_HD44780

Allowing to do all this in Configtool is forthcoming, of course.
2016-05-30 10:31:39 +02:00