Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ジャンクのレシートプリンタで名札印刷サービスを作ろう! / 20170212-osc17hm-...
Search
Akira Ouchi
February 12, 2017
Programming
1
2.6k
ジャンクのレシートプリンタで名札印刷サービスを作ろう! / 20170212-osc17hm-receipt
OSC2017 Hamanakoにい発表
Akira Ouchi
February 12, 2017
Tweet
Share
More Decks by Akira Ouchi
See All by Akira Ouchi
Raspberry Pi Pico 2 移行はアリか? / 20240927-rpi-pico2
akkiesoft
0
47
Any Raspberry Pi (5) Updates? / 20240618-rpi-updates
akkiesoft
0
30
Raspberry Pi 5のPCI Express拡張ボードあれこれ / 20240420-osunc2024-kawagoe
akkiesoft
0
190
Misskey OSPNサーバーでFediverseをはじめよう / 20240203-msky-ospn
akkiesoft
1
540
Raspberry PiではじめるKiCad入門 / 20240226-rpi-jam
akkiesoft
1
3.3k
ワンチャンXから離脱してFediverseに飛び込もう / 20240203-homeserver
akkiesoft
0
280
Raspberry Pi 5のPCI Express拡張ボードあれこれ / 202401-rpijam-osc24os
akkiesoft
0
2.7k
ラズピッピ・ファイブ / 20231024-rpi-jam-tokyo
akkiesoft
0
2.1k
今年のラズパイなんかあった? / 20230830-rpijamtokyo
akkiesoft
0
1.2k
Other Decks in Programming
See All in Programming
OnlineTestConf: Test Automation Friend or Foe
maaretp
0
120
距離関数を極める! / SESSIONS 2024
gam0022
0
290
Amazon Qを使ってIaCを触ろう!
maruto
0
410
色々なIaCツールを実際に触って比較してみる
iriikeita
0
330
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
520
.NET のための通信フレームワーク MagicOnion 入門 / Introduction to MagicOnion
mayuki
1
1.7k
Realtime API 入門
riofujimon
0
150
Click-free releases & the making of a CLI app
oheyadam
2
120
ペアーズにおけるAmazon Bedrockを⽤いた障害対応⽀援 ⽣成AIツールの導⼊事例 @ 20241115配信AWSウェビナー登壇
fukubaka0825
6
2k
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
240
Jakarta EE meets AI
ivargrimstad
0
230
Micro Frontends Unmasked Opportunities, Challenges, Alternatives
manfredsteyer
PRO
0
110
Featured
See All Featured
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Writing Fast Ruby
sferik
627
61k
[RailsConf 2023] Rails as a piece of cake
palkan
52
4.9k
It's Worth the Effort
3n
183
27k
Optimizing for Happiness
mojombo
376
70k
The Art of Programming - Codeland 2020
erikaheidi
52
13k
What's new in Ruby 2.0
geeforr
343
31k
What's in a price? How to price your products and services
michaelherold
243
12k
Making the Leap to Tech Lead
cromwellryan
133
8.9k
Building an army of robots
kneath
302
43k
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
Transcript
-5࡞ ࣌ؒ
࣌ؒ
δϟϯΫͷ ϨγʔτϓϦϯλͰ ໊ࡳҹαʔϏεΛ ࡞Ζ͏ʂ ͖͋ͬ͌ JE"LLJFTPGU 04$)BNBOBLP
ࣗݾհ • ͖͋ͬ͌ !"LLJFTPGU Ͱ͢ • +BQBOFTF3BTQCFSSZ1J6TFST(SPVQ – දͷଠా͞Μͷ͓ख͍ͱ͔ •
&KFDUίϚϯυϢʔβʔձओ࠻ • 3BTQCFSSZ1J͍͖ͩ͢ʔ – ͘Β͍ͬͯΔ
+BQBOFTF3BTQCFSSZ1J 6TFST(SPVQ • SBTQJKQͰ3BTQCFSSZ1JͷใΛൃ৴ – ͍͍ͩͨࢲ͕ॻ͍ͯ·͢ • .- (PPHMF(SPVQT ͷӡӦ
• Πϕϯτ – ݱࡏ͓ʹ04$ʹలࣔɾηϛφʔग़ల – 3BTQCFSSZ+". 3BTQCFSSZ1JϢʔβʔͷू ·Γ Λෆఆظ։࠵
ຊ
ϨγʔτϓϦϯτͷϩϚϯ • ͔͍͍ͬ͜͡ΌΜʁ – ී௨ͷళͰΒ͏ͷͨͩͷΰϛ͚ͩͲ ͡ͿΜͰҹ͢ΔͷͳΜ͔ಌΕΔΜʁ – ՍۭͷళͷϨγʔτͱ͔ • ϠϑΦΫͰதݹͰԁ͘Β͍͔Βങ͑
Δ • ͢͝ʔ͍ʂͨͷͦ͠ʔ͏ʂ – δϟϯΫύʔΫͷ΄͠ΐ͏ͳ͠ϑϨϯζͩͶ
ϠϑΦΫͷྫ
͋❗δϟϯΫϓϦϯλʔ❗ • ΞΩόͰ౦ࣳςοΫͷϞόΠϧϨγʔτ ϓϦϯλʔ͕ԁ – #&1%-()3 #MVFUPPUIϞσϧΒ͍͠ – 64#ଓରԠ –
όοςϦʔ͖ͭ • ߈Ͱങͬͨ
ࢴ͕ʜʜͳ͍ • NNͷײϩʔϧࢴ͕͋Ε͍͍ • ͕ɺۀ༻ͳͷͰߴ͍͕͠ଟ͍ • ಈ͔͘Θ͔ΒΜ • ԁγϣοϓ͔Β '"9༻ࢴΛങ͖ͬͯͯ
ࢳͷ͜Ͱͬͨ • ർΕͨ
ಈ͍ͨ • 8JOEPXTʹ64#ଓͨ͠Βී௨ʹϓϦϯ λʔͱͯ͠ೝࣝ͞Εͨ • ҹͰ͖ͨ • 31JͰҹͰ͖ͨΒ ͍͍ͳ͋ʙ •
ͻͱ·ͣΊͰͨ͠
ޙ ങͬͨͷͷ͜ͱͩͬͨ
ͦΖͦΖಈ͔͍ͨ͠ͱࢥͬͨ • ͱ͖݄ɺ࠶ͼϨγʔτϓϦϯ λʔ͕ग़ͨ • -JOVYࢼ͚ͨ͠ͲΑ͘Θ͔Βͳͯ͘์ஔ ͍͚ͯͨ͠ͲϦτϥΠ͢Δ͔ • ͑ͳ͖ΌࣺͯΔͧΈ͍ͨͳײͩͬͨ͡
ಈ͔ͳ͔ͬͨ • ͳΜ͔ʜʜσόΠε͕ೝࣝ͞Εͳ͍ • ͱݴ͏͔Τϥʔͱ͔ݴͬͯΔ • ͕͢͞ʹ৸͔ͤ͗ͯ͢յΕ͔ͨ • ʢ͘Β͍ޙͷࡢʣ •
Ξοʂʂʂ
ಈ͍ͨ • $614ΛೖΕΕ͍ͯͨ • ͦΓΌಈ͔Ͷ͑Θ • EFWVTCMQͱͯ͠ೝࣝͨ͠ • FDIP)PHFEFWVTCMQ ͰͳΜ͔ग़Δఔʹ؆୯ͩͬͨ
• &4$104ͱݴ͏ͷͰ੍ޚͰ͖ΔΒ͘͠ • ͳͥࢲ৸͔ͤͨͷ͔ʁʁʁ
ϥΠϒϥϦ͕͋ͬͨ • QZUIPOFTDQPT – IUUQTHJUIVCDPNQZUIPO FTDQPTQZUIPOFTDQPT • HJUDMPOFͯ͠Ϗϧυͯ͠Πϯετʔϧ • ͘͠QJQͰೖΔΒ͍͠
• IUUQTQZUIPO FTDQPTSFBEUIFEPDTJPFOMBUFTUVTFS SBTQJIUNM
εΫϦϓτ from escpos import * Printer = printer.Usb(0x08a6,0x0041) Printer.set( align="center",
text_type="BU",width=3,height=3) Printer.text("@Akkiesoft¥n¥n") Printer.image( "icon.png", False, True, 'bitImageColumn')
ҹ
πΠολʔ࿈ܞ͠Α͏ • &KFDUίϚϯυϢʔβʔձϦϙδτϦ͔Β NFOUJPOFKFDUΛ۷Γฦͨ͠ – IUUQTHJUIVCDPN"LLJFTPGU&KFDU $PNNBOE6TFST (SPVQCMPCNBTUFSNFOUJPOFKFDUQZ • ͖ͬ͞ͷεΫϦϓτΛ͍͍ײ͡ʹຒΊࠐ
Ή • ϝϯγϣϯͨ͠ਓͷ໊લͱΞΠίϯΛҹ ͢Δֻ͚͕Ͱ͖ͨ
܅ͷ໊ɻ
ձʹ͍ͳ͍ΦλΫͷ໊ࡳ͕ • ࣸਅΛπΠʔτͨ͠Β͜͜ʹ͍ͳ͍πΠ ͷΦλΫ͕ͻͨ͢Βҹ͖ͯͨ͠ • ձͷਓ͕͋·Γҹ͠ͳ͍··༻ࢴ͕ ͖ͭͨ • ձݶఆͷ߹ݴ༿తͳೝূ͕ඞཁ
ઓ൜ • ")0
φχʹ͏ͷ͔ • 04$ʹདྷͨਓ͕͜ΕͰ໊ࡳΛग़͢ • ʹ͚ͭΔ • ୭͔Θ͔Δ • ʜʜͱ͍͏ͷ͕Ͱ͖ͨΒ͍͍ͳͱࢥͬͨ •
࣮ࡍʹπΠͷΦλΫʹ͍ਚ͘͞Εͨ ͷͰܹ͓͜ΜΜؙ – ࡢ൩ςετϓϦϯτͰ͍ͩͿফͨ͠Μ͚ͩ Ͳ
՝ • ຊޠҹରԠ – TDSFFO@OBNFͰ͝·͔ͯ͠Δ͚Ͳɺ໊લ ग़͍ͨ͠ – &4$104ͱͷ༷తʹͰ͖ͦ͏ • όʔίʔυ23ίʔυରԠ
– 5XJUUFSͷ63-·Ͱग़͍ͨ͠ • ը૾͕ͨ·ʹόάͬͯੜσʔλͬΆ͍ͷ ͕ग़ΔͷΛͲ͏ʹ͔͍ͨ͠
Ϩγʔτ༻ࢴ • "NB[POʹ͋ͬͨ • ϩʔϧԁ͘Β͍͔Β͋ͬͨ – IUUQTXXXBNB[PODPKQEQ #1* • ࢳͷ͜ͰΔΑΓָ͔ʜʜʁ
·ͱΊ • ϨγʔτϓϦϯτҙ֎ͱ؆୯ʁͩͬͨ • ϓϦϯλʔΛ৸͔͍ͤͨͬͨͳ ͔ͬͨʜʜ • ϨγʔτϓϦϯτɺͨʔͷ͠ʔʂʂ • ࡢͷਂ࣌·Ͱ͔͔͚ͬͨͲͳΜ͔Ͱ
͖ͯΑ͔ͬͨ – ͦͯ͠ࠓே࣌ى͖Ͱͨ͠
͓ΘΓ