Slide 1

Slide 1 text

CircuitPythonͰಈ͘ ࣗ࡞ΩʔϘʔυͷ঺հ Python Charity Talks in Japan 2021.09 @mu2in

Slide 2

Slide 2 text

͓લ୭Α ● @mu2in ● JavaΤϯδχΞ ˠ JavaScriptΤϯδχΞ ● ओͳίϛϡχςΟ׆ಈ ○ ͍͢͝޿ౡ ■ ຖिਫ༵೔ʹ޿ౡͰ։࠵͍ͯ͠ΔIT΋͘΋͘ձ ■ 2017೥4݄͔Βຖ݄ʮ͍͢͝޿ౡ with PythonʯΛڞಉओ࠵ ○ PyCon mini Hiroshima ■ 2018೥10݄͔Βελοϑͱͯ͠ࢀՃ ○ PyCon JP ■ ͍͢͝޿ౡ with Python ίϛϡχςΟϒʔεग़ల ■ PyCon JP 2021: ޿ౡʹ͓͚Δ஍ҬPythonίϛϡχςΟͷ্ཱͪ͛ํͱଓ͚ํ

Slide 3

Slide 3 text

͜Ε·Ͱͷ͋Β͢͡ ● PyCon mini Hiroshima 2020 Ͱ ࣗ࡞ΩʔϘʔυʹೖ໳͠·ͨ͠ɻ https://speakerdeck.com/mu2in/introduction-to-self-made-keyboard-from-python

Slide 4

Slide 4 text

΋ͬͱ؆୯ʹ Python Ͱ ࣗ࡞ΩʔϘʔυΛ࡞Γ͍ͨ

Slide 5

Slide 5 text

ࠓ೔࿩͢͜ͱ ● ࢢൢͷΩʔϘʔυΩοτΛ࢖ͬͯɺ؆୯ʹࣗ࡞ΩʔϘʔυΛ૊ΈཱͯΔ ● CircuitPython ͱ KMK Firmware Λ࢖ͬͨࣗ࡞ΩʔϘʔυϓϩάϥϛϯά

Slide 6

Slide 6 text

༻ҙ͢Δ΋ͷ ● ͸Μͩͯ͝ ● ͸Μͩ ܭ3,500ԁ PiPi Gherkin Raspberry Pi Pico ΩʔεΠον x30 ϐϯϔομ x2 μΠΦʔυ x30 PCBιέοτ x30 ΩʔΩϟοϓ x30

Slide 7

Slide 7 text

૊Έཱͯޙ ● ༻ҙͨ͠෦඼Λ͸Μͩ෇͚͠ɺεΠονͱΩʔΩϟοϓΛࠩ͠ࠐΉɻ

Slide 8

Slide 8 text

ϓϩάϥϛϯάฤ

Slide 9

Slide 9 text

Raspberry Pi Pico ʹ CircuitPython ΛΠϯετʔϧ ● ϦηοτϘλϯ௕ԡ͠ͰUSBέʔϒϧΛ઀ଓ͢ΔͱɺRPI-RP2 υϥΠϒ͕Ϛ΢ϯτ͞ΕΔɻ ● CircuitPython ͷ UF2ϑΝΠϧΛυϥοά&υϩοϓ͢Δɻ

Slide 10

Slide 10 text

CircuitPython ʹ KMK Firmware ϥΠϒϥϦΛೖΕΔ ● ϚΠίϯΛUSBͰ઀ଓ͠௚͢ͱɺCIRCUITPY υϥΠϒ͕Ϛ΢ϯτ͞ΕΔɻ ● libσΟϨΫτϦ഑Լʹ KMK Firmware ͷϥΠϒϥϦΛ഑ஔ͢Δɻ ● code.py Λฤू͢ΔͱɺϚΠίϯ্Ͱ CircuitPython Λ࣮ߦ͢Δ͜ͱ͕Ͱ͖Δɻ

Slide 11

Slide 11 text

αϯϓϧΛಈ͔ͯ͠ΈΑ͏ Ωʔಉ࢜ͷܨ͕ΓΛࣔ͢ΩʔϚτϦοΫε Ωʔ͕ԡ͞Εͨ࣌ͷڍಈΛࣔ͢ΩʔϚοϓ PiPi GherkinͰ͸KMK Firmware༻ͷαϯϓϧ͕༻ҙ͞Ε͍ͯΔɻ https://git.40percent.club/di0ib/Misc/src/branch/master/PiPi%20Gherkin/

Slide 12

Slide 12 text

αϯϓϧͷ஫ҙ఺ ͦͷ··ͩͱΤϥʔ͕ग़ΔͷͰɺϞδϡʔϧͷݺͼग़͕͠ඞཁ https://git.40percent.club/di0ib/Misc/src/branch/master/PiPi%20Gherkin/code.py

Slide 13

Slide 13 text

৭ʑͳػೳΛࢼͯ͠ΈΑ͏

Slide 14

Slide 14 text

ΩʔϚοϓʹରԠ͢ΔΩʔೖྗΛઃఆ͠·͢ɻ
 1จࣈͷೖྗ͚ͩ͡Όͳ͘ Ctrl-C ΍ Ctrl-V ͳͲͷ૊Έ߹ΘͤΛར༻Ͱ͖·͢ɻ Ωʔೖྗͷઃఆํ๏ ίϐʔ ϖʔετ

Slide 15

Slide 15 text

LayersϞδϡʔϧ ෳ਺ͷΩʔϚοϓͷ੾Γସ͕͑Ͱ͖ΔΑ͏ʹͳΓ·͢ɻ ͜ͷϘλϯΛԡͯ͠Δؒ͸ɺ ԼͷΩʔϚοϓʹͳΔ( A→1 )

Slide 16

Slide 16 text

௕ԡ͢͠ΔͱShiftɺControlɺAltͳͲͷम০Ωʔͷݺͼग़͠ΛఆٛͰ͖·͢ɻ ModTapϞδϡʔϧ ௕ԡ͢͠ΔͱCtrl ௕ԡ͢͠ΔͱShift

Slide 17

Slide 17 text

Media Keys֦ுػೳ ϝσΟΞίϯτϩʔϧͷΩʔΛར༻Ͱ͖ΔΑ͏ʹͳΓ·͢ɻ ϛϡʔτ ϘϦϡʔϜૢ࡞

Slide 18

Slide 18 text

·ͱΊ ● PiPi Gherkin ͱ KMK Firmware Ͱ؆୯ʹࣗ࡞ΩʔϘʔυ͕࡞Εͨɻ ● Zoom ͷૢ࡞ ΍ Α͘࢖͏ϚΫϩ Λొ࿥͢Δͱศརɻ ● ΈΜͳ΋PythonͰࣗ࡞ΩʔϘʔυʹνϟϨϯδ͠Α͏ʂ ˞͜ͷεϥΠυ͸1J1J(IFSLJOͰॻ͖·ͨ͠ɻ