From eeeb3c688e84cee0a6aad8e8aa48c4d70f1d594c Mon Sep 17 00:00:00 2001 From: Steve Jones Date: Sat, 6 Sep 2025 14:56:00 +0200 Subject: [PATCH] Fix `create_char` documentation Instructions for displaying created character are now displayed properly in sphinx HTML output. --- adafruit_character_lcd/character_lcd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_character_lcd/character_lcd.py b/adafruit_character_lcd/character_lcd.py index b902d28..0f581b3 100644 --- a/adafruit_character_lcd/character_lcd.py +++ b/adafruit_character_lcd/character_lcd.py @@ -483,7 +483,7 @@ def create_char(self, location: int, pattern: Sequence[int]) -> None: The location parameter should be between 0 and 7 and pattern should provide an array of 8 bytes containing the pattern. E.g. you can easily design your custom character at http://www.quinapalus.com/hd44780udg.html - To show your custom character use, for example, ``lcd.message = "\x01"`` + To show your custom character use, for example, ``lcd.message = "\\x01"`` :param int location: Integer in range(8) to store the created character. :param Sequence[int] pattern: len(8) describes created character.