Reference | All - Docs - Libraries - Soft Processors - Cores

Multiplex7SegSW

WriteChar ()

Description

This function writes a character at the specified position. Refer to the character map for the character set that is used. Some characters like COLON and APOSTROPHE are valid only for the fifth digit. Written to any other position they will display different characters.

Syntax

WriteChar(int pos, byte chr)

Parameters

pos: position at which the character is to be written. The function does not check for the limits, so manipulating the 5th digit can also be done with this function.

chr: character to be displayed on the display at specified position. Refer to the character map for the character set that is used.

Example

(:source:)

  1. include <Multiplex7SegSW>;

Multiplex7SegSW sevenseg1;

void setup() {

  sevenseg1.set(1, noOfDigits, digitPins, segmentPins);

}

void loop() {

  sevenseg1.writeChar(0, 'A');

}

(:sourceend:)

This text is from the Papilio reference and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.

  

Share |