aboutsummaryrefslogtreecommitdiffstats
path: root/src/lcd_hd44780.c
Commit message (Collapse)AuthorAgeFilesLines
* lcd_hd44780: Make sure nsecs_to_ticks() is always inlinedKevin O'Connor2025-04-171-6/+6
| | | | | | It is a compile-time calculation that needs to be inlined to work. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lcd_st7920: Check CONFIG_MACH_AVR for slow mcusKevin O'Connor2021-07-041-2/+2
| | | | | | | Use CONFIG_MACH_AVR instead of CONFIG_CLOCK_FREQ to check for slow mcus. Some fast MCUs do not export a high clock frequency. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* command: Add command_decode_ptr() helperKevin O'Connor2020-10-301-2/+2
| | | | | | | | Add a helper function to convert from a string buffer passed in the args[] parameter to an actual pointer. This avoids all the callers needing to perfrom pointer manipulation. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lcd_hd44780: Only calibrate cmd_wait_ticks on mcus with strict timingKevin O'Connor2020-05-311-0/+5
| | | | | | | The calibration isn't valid on the linux mcu, so make it dependent on CONFIG_HAVE_STRICT_TIMING. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lcd_hd44780: Minor change to timing delaysKevin O'Connor2019-11-261-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lcd_hd44780: Add proper timing delays around gpio updatesKevin O'Connor2019-11-261-0/+20
| | | | | | | A fast micro-controller may update the gpio pins faster than the hd44780 chip can handle. Add in the appropriate delays. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lcd_hd44780: Add micro-controller code for the HD44780 LCD chipKevin O'Connor2018-03-061-0/+132
Add support for passing messages to an HD44780 chip via a 4-bit bit-banging interface. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>