M128/64 STK 1.0.1
 
All Namespaces Functions Pages
Loading...
Searching...
No Matches
display Namespace Reference

Functions

void initialize ()
 
void print (const char *str)
 
void print (char ch, uint8_t pos)
 
uint8_t getMask (char ch)
 
void refresh (uint8_t pos)
 
void refresh ()
 

Detailed Description

The panel has 2 F3461BH 8-digit displays. One of them is driven by a 74HCT138, the other is driven by a 74HCT595. Display driver:

A0 1|--—|16 VCC A1 2| U |15 /Y0 A2 3| |14 /Y1 /E1 4| |13 /Y2 /E2 5| |12 /Y3 E3 6| |11 /Y4 /Y7 7| |10 /Y5 GND 8|--—|9 /Y6

A0 - PORTA7 A1 - PORTA6 A2 - PORTA5 E3 - PORTA4 (high active)

Q1 1|--—|16 VCC Q2 2| U |15 Q0 Q3 3| |14 DS Q4 4| |13 /OE Q5 5| |12 STCP Q6 6| |11 SHCP Q7 7| |10 /MR GND 8|--—|9 Q7S

SHCP - PORTA1 STCP - PORTA2 DS - PORTA3

Function Documentation

◆ getMask()

uint8_t display::getMask ( char ch)

Prints a character into the display.

Parameters
chCharacter
Returns
mask for the character

◆ initialize()

void display::initialize ( )

Initializes PORTA to output and turns off the display.

◆ print() [1/2]

void display::print ( char ch,
uint8_t pos )

Prints a character into the display.

Parameters
chCharacter
posPosition of the character

◆ print() [2/2]

void display::print ( const char * str)

Prints a text into the display.

Parameters
strText

◆ refresh() [1/2]

void display::refresh ( )

Refreshes the LEDs of the display.

◆ refresh() [2/2]

void display::refresh ( uint8_t pos)

Refreshes the LEDs of the display for a single digit.