Options
All
  • Public
  • Public/Protected
  • All
Menu

BinaryConverter class to change an binary code into an array of the different layers of the 7-segment display.

import BinaryConverter from './src/binaryConverter'

const binaryConverter = new BinaryConverter();
binaryConverter.binaryTo7Segment("11110000");

Hierarchy

  • BinaryConverter

Index

Methods

binaryTo7Segment

  • binaryTo7Segment(binary: string): string[]
  • converts the given binary code (string) to a array of the layers of the numbers

    Parameters

    • binary: string

    Returns string[]

    returns the array of the different layers of the 7-segment number

Generated using TypeDoc