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

Multiplex7SegSW

setApostrophe ()

Description

This function sets or removes the apostrophe displayed after the third digit. It is useful for displaying parameters like angles or temperature.

Syntax

setApostrophe(byte value)

Parameters

value: whether the apostrophe is to be set or cleared. A '0' (or false) will remove the apostrophe while a '1' (or true) will set the colon.

Example

(:source:)

  1. include <Multiplex7SegSW>;

Multiplex7SegSW sevenseg1;

void setup() {

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

}

void loop() {

  sevenseg1.setApostrophe(true);

}

(:sourceend:)

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

  

Share |