Skip to content

Commit

Permalink
Merge pull request logisim-evolution#1798 from BFH-ktt1/Alchitry
Browse files Browse the repository at this point in the history
Added scanning seven segment array to alchitry board and fixed small bug in the display of the scanning seven segment
  • Loading branch information
BFH-ktt1 authored Jul 27, 2023
2 parents f9c3388 + 73a8018 commit dab9166
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 dab9166

Please sign in to comment.