Benjamin Valentin
d213bbc6f5
Revert "drivers/hd44780: add short delay after each character"
...
This reverts commit cf01c743a89e17d78037fcc77f32b8daa859845e.
Adding an unexplained delay seemed wrong in the first place, but it fixed
the display on the MCB2388.
Turns out the display was erroneously operating in 8-bit mode due to the
uninitialized flag register.
Why the delay helped here I don't know.
But with #12634 fixing this, this hack is not needed anymore.
2019-11-07 22:40:01 +01:00
Alexandre Abadie
62d299459f
drivers/hd44780: optimize detection of 4 and 8 bit modes
...
The driver can only be used with either 4 or 8 bit modes. Checking if the 5th pin is set in the configuration is enough the determine if 8bit mode should be used or not
2019-11-06 16:27:39 +01:00
Alexandre Abadie
c7fac09d42
drivers/hd44780: fix potential hardfault on initialization
...
Co-authored-by Benjamin Valentin <benpicco@googlemail.com>
2019-11-06 16:14:39 +01:00
Benjamin Valentin
cf01c743a8
drivers/hd44780: add short delay after each character
...
On the LCD display connected to the MCB2300 board, the
display would not light up.
Adding a 1µs delay after each byte of data seems to fix it.
2019-10-29 11:09:56 +01:00
Alexandre Abadie
bfe1a84991
drivers/hd44780: change default pin params
...
Remove the use of arduino dependent macros. The default pins are for the Arduino Zero board
2019-10-29 11:09:56 +01:00
Alexandre Abadie
8e70cfb2e4
driver/hd44780: cleanup param definition and HD44780_RW_OFF
...
There's already a macro for undefined gpios: GPIO_UNDEF
2019-10-29 10:58:26 +01:00
Alexandre Abadie
04dc65f6ad
drivers/hd44780: move params header at the right place
2019-10-29 10:58:26 +01:00
Kees Bakker
2918d06e9c
drivers/hd44780: do normal assignment instead of memcpy
2019-01-10 19:43:44 +01:00
Gunar Schorcht
11be2035dd
drivers/hd44780: fix compilation errors
2018-10-11 08:21:28 +02:00
Alexandre Abadie
e72448703d
drivers: instead of cpp-style, use C-style comments
2018-02-06 16:59:58 +01:00
Alexandre Abadie
94c753c07a
drivers: doxygen cleanup
2017-09-01 15:12:20 +02:00
Alexandre Abadie
317716419c
drivers: use const device descriptor
2017-06-21 17:05:45 +02:00
smlng
8d50048c82
drivers: fix doxygen for hd44780
2017-04-21 11:30:15 +02:00
smlng
26ec9041a0
driver: add hd44780 lcd support
2017-03-27 16:43:50 +02:00