Edit

Share via


Pcd8544 Class

Definition

PCD8544 - 48 × 84 pixels matrix LCD, famous Nokia 5110 screen

public class Pcd8544 : IDisposable, Iot.Device.CharacterLcd.ICharacterLcd
type Pcd8544 = class
    interface ICharacterLcd
    interface IDisposable
Public Class Pcd8544
Implements ICharacterLcd, IDisposable
Inheritance
Pcd8544
Implements

Constructors

Pcd8544(Int32, SpiDevice, Int32, Int32, GpioController, Boolean)

Create Pcd8544

Pcd8544(Int32, SpiDevice, Int32, PwmChannel, GpioController, Boolean)

Create Pcd8544

Fields

ColorBitPerPixel

Number of bit per pixel for the color

ScreenBufferByteSize

Size of the screen 48 x 84 / 8 in bytes

Properties

BacklightBrightness

Change the back light from 0.0 to 1.0. If a pin is used, the threshold for full light is more then 0.5.

BacklightOn

Enable/disable the backlight. (Will always return false if no backlight pin was provided.)

Bias

The bias for 0 to 7. Bias represent the voltage applied to the LCD. The highest, the darker the screen will be.

BlinkingCursorVisible

This is not supported on this screen, this function will have no effect

Contrast

Get or set the contrast from 0 to 127

DisplayOn

Enable/disable the display.

Enabled

Enable the screen

InvertedColors

True to inverse the screen color

NumberOfCustomCharactersSupported

Returns the number of custom characters for this display. A custom character is one that can be user-defined and assigned to a slot using CreateCustomCharacter(Int32, ReadOnlySpan<Byte>)

PixelScreenSize

The size of the screen in terms of pixels

Size

The size of the screen in terms of characters

Temperature

Get or set the temperature coefficient

UnderlineCursorVisible

Enable/disable the underline cursor.

Methods

Clear()

Clear the screen

CreateCustomCharacter(Int32, Byte[])

Add a specific character to the font. It will replace existing embedded font character if it does already exist.

CreateCustomCharacter(Int32, ReadOnlySpan<Byte>)

Add a specific character to the font. It will replace existing embedded font character if it does already exist.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Draw()

Draw what's in memory to the the screen

DrawLine(Int32, Int32, Int32, Int32, Boolean)

Draw a line

DrawLine(Point, Point, Boolean)

Draw a line

DrawLine(Point, Point, Boolean)

Draw a line

DrawPoint(Int32, Int32, Boolean)

Draw a point

DrawPoint(Point, Boolean)

Draw a point

DrawPoint(Point, Boolean)

Draw a point

DrawRectangle(Int32, Int32, Int32, Int32, Boolean, Boolean)

Draw a rectangle

DrawRectangle(Point, Size, Boolean, Boolean)

Draw a rectangle

DrawRectangle(Point, Size, Boolean, Boolean)

Draw a rectangle

DrawRectangle(Rectangle, Boolean, Boolean)

Draw a rectangle

DrawRectangle(Rectangle, Boolean, Boolean)

Draw a rectangle

SetByteMap(ReadOnlySpan<Byte>)

Set the byte map

SetCursorPosition(Int32, Int32)

Moves the cursor to an explicit column and row position.

Write(Char[])

Write a raw byte stream to the display. Used if character translation already took place.

Write(ReadOnlySpan<Char>)

Write a raw byte stream to the display. Used if character translation already took place.

Write(String)

Write text

WriteLine(String)

Write text and set cursor position to next line

Extension Methods

CreateCustomCharacter(ICharacterLcd, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)

Creates a custom character for standard displays with 8-pixel-per-row characters. See CreateCustomCharacter(Int32, ReadOnlySpan<Byte>) for details.

Applies to