Skip to content

Commit 9272fd6

Browse files
committed
Completed multimode support.
1 parent 5970b68 commit 9272fd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

firmware/Serial 7-Segment Display/Serial_7_Segment_Display_Firmware/Serial_7_Segment_Display_Firmware.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ SevSeg myDisplay; //Create an instance of the object
3535
//OpenSegment uses PNP and NPN transistors to drive larger displays
3636
#define S7S 1
3737
#define OPENSEGMENT 2
38-
#define DISPLAY_TYPE S7S
38+
#define DISPLAY_TYPE OPENSEGMENT
3939

4040
//Global variables
4141
unsigned int analogValue6 = 0; //These are used in analog meter mode
@@ -122,8 +122,8 @@ void displayCounter()
122122
{
123123
SPCR = 0; //Disable all SPI interrupts that may be turned on
124124

125-
int counterIncrement = SPI_MISO; //Labeled SDO
126-
int counterDecrement = SPI_MOSI; //Labeled SDI
125+
int counterIncrement = SPI_MOSI; //Labeled SDI
126+
int counterDecrement = SPI_MISO; //Labeled SDO
127127

128128
pinMode(counterIncrement, INPUT_PULLUP);
129129
pinMode(counterDecrement, INPUT_PULLUP);

0 commit comments

Comments
 (0)