TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Seven Segment Display

20 点作者 edent10 个月前

10 条评论

nateguchi10 个月前
11 segment display?
评论 #41045675 未加载
评论 #41048827 未加载
phkahler10 个月前
When I was disassembling roms for the Cinematronics vector arcade games I ran across a very interesting function to draw a 7 segment digit. The caller would set a starting position which would be at the middle left vertex, and a delta (dx, dy) with dy equal to the digit width and dx = 0. It would then either draw to or move to current position plus (dx,dy). Then it would swap dx and dy and optionally flip their signs. The sign flipping is done conditionally based on a bit mask (same for every digit) and the draw/move option depended on the digit to display. From that center point it would go up, right, down, left, down, right, up, right. IIRC that final right move could leave it at a decent location to start the next digit, but I think in practice that would leave too much space. An odd algorithm with very little state, which was important when you only have 256 12-bit words of memory.
Retr0id10 个月前
I think the glyph for "Q" should be the same as "O" but with the bottom-right diagonal element on too.
anditherobot10 个月前
How did people differentiate between 1 and L, 5 and S, 0 and O?<p>ex: 1055 &amp; LOSS ( one zero five five &amp; loss)
评论 #41046130 未加载
评论 #41046046 未加载
ChrisMarshallNY10 个月前
That&#x27;s nice! It works quite fast.<p>I did something similar, as a Swift module. I use it for one of my apps.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;RiftValleySoftware&#x2F;RVS_RetroLEDDisplay">https:&#x2F;&#x2F;github.com&#x2F;RiftValleySoftware&#x2F;RVS_RetroLEDDisplay</a>
basemi10 个月前
Related: <a href="https:&#x2F;&#x2F;front-end.social&#x2F;@ashur&#x2F;112820329021521965" rel="nofollow">https:&#x2F;&#x2F;front-end.social&#x2F;@ashur&#x2F;112820329021521965</a>
NelsonMinar10 个月前
See also <a href="https:&#x2F;&#x2F;aresluna.org&#x2F;segmented-type&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aresluna.org&#x2F;segmented-type&#x2F;</a> for a bunch of segmented displays of varying complexity.
volemo10 个月前
Hyphen seems to be an accidental omission.
评论 #41046021 未加载
thih910 个月前
My favorite is the apostrophe. Simple and yet works very well.
skibz10 个月前
This is a beautiful demo.