LcdCharacterEncodingFactory.Create(CultureInfo, String, Char, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates the character mapping optimized for the given culture. Checks whether the characters required for a given culture are available in the installed character map and tries to add them as user-defined characters, if possible.
public Iot.Device.CharacterLcd.LcdCharacterEncoding Create (System.Globalization.CultureInfo culture, string romName, char unknownLetter, int maxNumberOfCustomCharacters);
member this.Create : System.Globalization.CultureInfo * string * char * int -> Iot.Device.CharacterLcd.LcdCharacterEncoding
Public Function Create (culture As CultureInfo, romName As String, unknownLetter As Char, maxNumberOfCustomCharacters As Integer) As LcdCharacterEncoding
Parameters
- culture
- CultureInfo
Culture for which support is required
- romName
- String
ROM type of attached chip. Supported values: "A00", "A02", "SplC780"
- unknownLetter
- Char
Letter that is printed when an unknown character is encountered. This letter must be part of the default rom set
- maxNumberOfCustomCharacters
- Int32
Maximum number of custom characters supported on the hardware. Should be 8 for Hd44780-controlled displays.
Returns
The newly created encoding. Whether the encoding can be loaded to a certain display will be decided later.
Exceptions
The character specified as unknownLetter must be part of the mapping.