forked from Hay1tsme/segatools
print vfd message instead of dump hex #13
Loading…
Reference in New Issue
No description provided.
Delete Branch "Sucareto/segatools:develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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 :)