Skip to content

Commit

Permalink
MU: 7-seg display, phase 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Feb 21, 2024
1 parent 5742f45 commit c3fc15f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/disp/disp_mu.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const modeGroup = {
};
const number7Seg = [
0b1011111,
0b0001100,
0b0000011,
0b1110101,
0b1110011,
0b0101011,
Expand Down Expand Up @@ -560,7 +560,7 @@ let MuDisplay = class extends RootDisplay {
ctx.fillStyle = getLcd(isPositivePitch);
ctx.fillRect(765, 207, 3, 10);
ctx.fillRect(765, 222, 3, 10);
paintSevenSeg(ctx, 779, 200, 0);
paintSevenSeg(ctx, 779, 200, number7Seg[Math.floor(pitch / 10) || 10]);
paintSevenSeg(ctx, 801, 200, number7Seg[pitch % 10]);
};
};
Expand Down

0 comments on commit c3fc15f

Please sign in to comment.