Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Seven Segment Display (ashur.cab)
20 points by edent 11 months ago | hide | past | favorite | 15 comments



11 segment display?


Only if you type: k, m, w, v, x, z. Also: /, \, >, <. *.

Edit: uppercase too! In particular: K, M, W, but also: D (especially interesting), N, R.



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.


I think the glyph for "Q" should be the same as "O" but with the bottom-right diagonal element on too.


How did people differentiate between 1 and L, 5 and S, 0 and O?

ex: 1055 & LOSS ( one zero five five & loss)


I'm a fan of HPDL-1414 display modules, which have an integrated character ROM covering the symbols and upper-case part of ASCII: https://www.farnell.com/datasheets/76528.pdf

It does have a few more segments, but all the glyphs it covers are distinguishable.


With more segments than just 11:

https://www.digikey.com/en/products/detail/kingbright/ACPSC0...

This one's missing a period (and question mark/exclamation point), and the opportunity for a hyphen.


That's nice! It works quite fast.

I did something similar, as a Swift module. I use it for one of my apps.

https://github.com/RiftValleySoftware/RVS_RetroLEDDisplay



See also https://aresluna.org/segmented-type/ for a bunch of segmented displays of varying complexity.


Hyphen seems to be an accidental omission.


Likewise for comma and grave.


My favorite is the apostrophe. Simple and yet works very well.


This is a beautiful demo.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: