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

Multiplex7SegSW

setDecimalPoint ()

Description

This function sets the decimal point at the specified digit.

Syntax

setDecimalPoint(int pos, byte value)

Parameters

pos: position at which the decimal point is to be set

value: whether the decimal point is to be set or cleared. A '0' (or false) will remove the decimal point while a '1' (or true) will set the decimal point at the specified digit.

Example

(:source:)

  1. include <Multiplex7SegSW>;

Multiplex7SegSW sevenseg1;

void setup() {

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

}

void loop() {

  sevenseg1.setDecimalPoint(2, true);

}

(:sourceend:)

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

  

Share |