Skip to content

Commit

Permalink
Added scanning seven segment array to alchitry board and fixed small bug
Browse files Browse the repository at this point in the history
in the display of the scanning seven segment
  • Loading branch information
BFH-ktt1 committed Jul 27, 2023
1 parent f8dac01 commit 73a8018
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public static void getPartialMapInfo(Integer[][] partialMap,
}
if (xIndex > 4) xIndex = 4;
if (yIndex > 7) yIndex = 7;
final var pinNr = segments[yIndex][xIndex] < 0 ? -1 : segments[yIndex][xIndex] + (8 * selectedSegment);
final var pinNr = segments[yIndex][xIndex] < 0 ? -1 : segments[yIndex][xIndex] + (8 * selectedSegment);
partialMap[w][h] = pinNr;
}
break;
Expand Down Expand Up @@ -505,8 +505,8 @@ public static void paintPartialMap(Graphics2D g,
realYIndexPlusOne = xIndex + 1 + segment * 5;
}
default -> {
realXIndex = xIndex;
realXIndexPlusOne = xIndex + 1;
realXIndex = xIndex + segment * 5;
realXIndexPlusOne = xIndex + 1 + segment * 5;
realYIndex = yIndex;
realYIndexPlusOne = yIndex + 1;
}
Expand Down
14 changes: 5 additions & 9 deletions src/main/resources/resources/logisim/boards/ALCHITRY_AU_IO.xml

Large diffs are not rendered by default.

0 comments on commit 73a8018

Please sign in to comment.