Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PrintLCD

A class that accepts the number size and settings, prints the segment in the correct form

Hierarchy

  • PrintLCD

Index

Constructors

constructor

  • new PrintLCD(segmentA: Array<string>, segmentB: Array<string>, segmentC: Array<string>, segmentD: Array<string>, segmentE: Array<string>, segmentF: Array<string>, segmentG: Array<string>): PrintLCD
  • Parameters

    • segmentA: Array<string>
    • segmentB: Array<string>
    • segmentC: Array<string>
    • segmentD: Array<string>
    • segmentE: Array<string>
    • segmentF: Array<string>
    • segmentG: Array<string>

    Returns PrintLCD

Properties

line1

line1: string

line2

line2: string

line3

line3: string

line4

line4: string

line5

line5: string

line6

line6: string

segmentA

segmentA: string[]

segmentB

segmentB: string[]

segmentC

segmentC: string[]

segmentD

segmentD: string[]

segmentE

segmentE: string[]

segmentF

segmentF: string[]

segmentG

segmentG: string[]

Methods

Private doubleSize

  • doubleSize(numberSize: number): void
  • A method for displaying the temperature in double format

    Parameters

    • numberSize: number

      Represents the size of number

    Returns void

Private normalSize

  • normalSize(numberSize: number): void
  • A method for displaying the temperature in normal format

    Parameters

    • numberSize: number

      Represents the size of number

    Returns void

printSegment

  • printSegment(numberSize: number, border: boolean, doubleSize: boolean): void
  • A method that accepts the number size and settings, prints the segment in the correct form

    Parameters

    • numberSize: number

      Represents the size of number

    • border: boolean

      Represents the state of the border

    • doubleSize: boolean

      Represents the state of the size

    Returns void

Generated using TypeDoc