Create new instance of Display
The settings for the display size and whether or not there should be a frame around the output
The settings for the display size and whether or not there should be a frame around the output
Get the display output in string format from a given array of displayRows
An array of the separate rows from the temperature output segments (without the frame)
An instance of the Frame class to add a frame if so described in the settings
Returns the actual string in 7-segment style from a given temperature in string format
The temperature to print out in 7-segment style
Generated using TypeDoc
Display Class It outputs the string in 7-segment style to print out from a given temperature in string format
import { Display } from '@maximva/examenopdracht-maximva' import { Temperature } from '@maximva/examenopdracht-maximva' import { DisplaySize } from '@maximva/examenopdracht-maximva' const displaySettings = { frame : true, size : DisplaySize.large } const temperature: Temperature = new Temperature(12.81) const display: Display = new Display(displaySettings) const displayOutput = display.write(temperature.toString()) console.log(displayOutput)