print vfd message instead of dump hex #13

Merged
Dniel97 merged 1 commits from Sucareto/segatools:develop into develop 2024-04-29 19:48:37 +00:00
Contributor

A simple implementation that can print the text displayed by vfd to the console.

Data parsing example:
[1b] [30] [00 00 00] [93 64 8e 71 8c 88 8d cf 82 c5 82 ab 82 dc 82 b7] // 電子決済できます
[1b] [50] [2e] [6e 61 6e 61 63 6f 20 20 20 20 20 20 8c f0 92 ca 8c 6e 20 20 20 20 20 20 57 41 4f 4e 20 20 20 20 20 20 50 41 53 45 4c 49 20 20 20 20 20 20] // nanaco 交通系 WAON PASELI
[1b] [30] [00 00 00] [93 64 8e 71 8c 88 8d cf 82 c5 82 ab 82 dc 82 b9 82 f1] // 電子決済できません
You can convert hex to string via this website
The vfd hex data contains Shift_JIS encoded strings. The submitted code will convert Shift_JIS to native encoding before printing.

A simple implementation that can print the text displayed by vfd to the console. Data parsing example: [1b] [30] [00 00 00] [93 64 8e 71 8c 88 8d cf 82 c5 82 ab 82 dc 82 b7] // 電子決済できます [1b] [50] [2e] [6e 61 6e 61 63 6f 20 20 20 20 20 20 8c f0 92 ca 8c 6e 20 20 20 20 20 20 57 41 4f 4e 20 20 20 20 20 20 50 41 53 45 4c 49 20 20 20 20 20 20] // nanaco 交通系 WAON PASELI [1b] [30] [00 00 00] [93 64 8e 71 8c 88 8d cf 82 c5 82 ab 82 dc 82 b9 82 f1] // 電子決済できません You can convert hex to string via [this website](https://r12a.github.io/app-encodings/) The vfd hex data contains Shift_JIS encoded strings. The submitted code will convert Shift_JIS to native encoding before printing.
Sucareto added 1 commit 2024-04-29 18:34:17 +00:00
Owner

WOW nice, never thought I would see anyone implementing VFD messages but here we are!

Thanks for the commit, will be merged as tested succesfully :)

WOW nice, never thought I would see anyone implementing VFD messages but here we are! Thanks for the commit, will be merged as tested succesfully :)
Dniel97 merged commit 25e954fb55 into develop 2024-04-29 19:48:37 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Dniel97/segatools#13
No description provided.