From 6c1b6888ac1019ccad30a9303caab1c1d429b960 Mon Sep 17 00:00:00 2001 From: ABelliqueux Date: Tue, 19 Nov 2024 12:21:14 +0100 Subject: [PATCH] Upgrade circuit python, adafruit_hid to 9.x --- code.py | 6 +++--- lib/adafruit_hid/__init__.mpy | Bin 761 -> 747 bytes lib/adafruit_hid/consumer_control.mpy | Bin 612 -> 629 bytes lib/adafruit_hid/consumer_control_code.mpy | Bin 354 -> 379 bytes lib/adafruit_hid/keyboard.mpy | Bin 1203 -> 1204 bytes lib/adafruit_hid/keyboard_layout_base.mpy | Bin 1271 -> 1216 bytes lib/adafruit_hid/keyboard_layout_us.mpy | Bin 330 -> 338 bytes lib/adafruit_hid/keycode.mpy | Bin 1729 -> 1979 bytes lib/adafruit_hid/mouse.mpy | Bin 799 -> 856 bytes readme.md | 3 ++- 10 files changed, 5 insertions(+), 4 deletions(-) diff --git a/code.py b/code.py index ee344d9..5fbc2b9 100644 --- a/code.py +++ b/code.py @@ -38,12 +38,12 @@ buttons_gpio = { # name GPIO Keycode_1 Keycode_2(ALT mode) State DigitalIO (switch) "red" : dict(gpio=board.GP18, keycode_1=Keycode.DELETE, keycode_2=Keycode.E, state=False, DIO=None), "green" : dict(gpio=board.GP19, keycode_1=Keycode.SPACEBAR, keycode_2=Keycode.RETURN, state=False, DIO=None), - "blue" : dict(gpio=board.GP16, keycode_1=Keycode.RIGHT_ARROW, keycode_2=Keycode.DOWN_ARROW,state=False, DIO=None), + "blue" : dict(gpio=board.GP16, keycode_1=Keycode.RIGHT_ARROW, keycode_2=Keycode.UP_ARROW, state=False, DIO=None), "black" : dict(gpio=board.GP20, keycode_1=Keycode.O, keycode_2=Keycode.R, state=False, DIO=None), - "yellow": dict(gpio=board.GP17, keycode_1=Keycode.LEFT_ARROW, keycode_2=Keycode.UP_ARROW, state=False, DIO=None), + "yellow": dict(gpio=board.GP17, keycode_1=Keycode.LEFT_ARROW, keycode_2=Keycode.DOWN_ARROW,state=False, DIO=None), "switch": dict(gpio=board.GP21, keycode_1=None, keycode_2=None, state=False, DIO=None, switch_setup=dict(gpio=board.GP7, state=False, DIO=None)), "fn_1": dict(gpio=board.GP15, keycode_1=Keycode.W, keycode_2=Keycode.X, state=False, DIO=None), - "fn_2": dict(gpio=board.GP14, keycode_1=Keycode.F, keycode_2=Keycode.F, state=False, DIO=None), + "fn_2": dict(gpio=board.GP14, keycode_1=Keycode.L, keycode_2=Keycode.F, state=False, DIO=None), } # GPIO setup diff --git a/lib/adafruit_hid/__init__.mpy b/lib/adafruit_hid/__init__.mpy index 458606e3a188bb816eba1353c02a4f84aabaf27e..36c0a3111586da8acd429a4614e310b7b74c4f4e 100644 GIT binary patch delta 603 zcmYjLO>YuW6umPrF!C{-4*0Y!iOm4EDxtPC-MDFnk44z))+}#v>SWlKMGTKL z;VHtnOB|P8M^6$lc1XvjNVv3gp~&mnFvS)Z3K)QYZA z%)F=yff%9EXeNRp`d(~Cmh~%!r_7BEk9hsRHJ*}U45hMw(!GNMXkz@R1Sp{y%=_ct zgF&#pow%74;=x7`y_b{o%PT9p@@l@l)+#)f-Mg#u#*TzWS!R<})zJgyi*`D~Pvmct zRPxigdN@f5pU+iILX(-IIyu$pQxqjL)_$rx(yc7J$qW8+%V|8@BMM>(hK(n2;&L&nBG DzEPv; literal 761 zcmZXSK~K~`6vwA5xa@+P-ELE(E3skB8er317sP~%*lkDw4{nfP4Q4FuESoDhb5 z;?)r%fp|rFwD&^e#fAl+Sa8#Wn^qMAUR0eR2${o37|>~{q9D{sSQ2A|Ze~=;=IzQT zBRg1?tT7-0g(eY>cL@z+Raz;5jS{H-Fh{xF7NG>5TV>%{T*I#t9Jp8*jKC7w-?c$hFUBvw#fjBRD)aWDfJA8R=vD z2yb@92t<%*K0U5q1`otJE5oga(z1UJUGoKZ4xR3zn*av@HF z6ioR>%GeEq0J{u(=GlSKIKwb{Si~I?%+A2B}$*2jc??)sV)UvaR+_;T*KIVb1b+*TZHm0`0#=%2FC6}@wJus6cNlH z)`Bre$N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SXFO@-M8qg&F_= diff --git a/lib/adafruit_hid/keyboard_layout_base.mpy b/lib/adafruit_hid/keyboard_layout_base.mpy index 56d387fee08b292cae832de340a9e3c5f5a9ea06..b2b8735759d55b009ee896f1f1afcd7d1807bff8 100644 GIT binary patch literal 1216 zcmZ9JUsD=a6u|GI5Fi9sc5`bC#w~v%7*Il)j!z1UfEW>hNy)TxS(jCqqRT9+mC4xd zT03Fd57LLeED%3HV*3T`OZs3t(=Xukq3^xBK&R8WGw0tu=XcIMH)R2ftEMbh=MJQk zri>cRdh|=7yDxH59ksZwcp{^Ht|LU+T`*%WpR`*7aLCu`Eep3Cndn%X$e9b zSmoxC0PKm#YUDZaP4c!4UJ~QLl-Gg2lA1D3YD+?=1KfMLOty?Rw#z70VAFsuWpkTl zw7I>Jnb<}gNXM@+$g&^-%kjyP@dCZP1G=hz1#$c0sjwRR^#Aa=ES@sGhc-&7Tn;dXLgj*v zH>P_55jqv5PE$Na2#^R#LR-XE^w}pDlyfqooomU55^!{6N#CQrF5pcARa9-_h1sh2 z1nNukT0@rGowaE6uqiiA_9MJ_6rKE2bYt>isiwr^kK66a4cs%EVA_=L1W8taEK0PpXHh|+TcI*PhBL04=F&c~+VLd*=QB5ygHcis<}m376| z*XGPc{_?Y*2)82;e5!2MYTkS>7+xB%d5tpD4>Zb|AgX{5banIRyYU5yFATFk zHf9r`TI9da{xBPH1(rg}=Za%9=r80$JJHORCm=C_KFarqYmKIc3F7Cs$_KWf(T=x6 zjiPT8rfTw5afOF*LZcquvS(NtUgZ~@bJhFnN~7Q%&T=hZdDL(2uy=D8{}-lnc6G)p z*E26ce?-o?A{a$JG8l`t>dwtw$b^@Z%;1y( zHirDSRu5djEq_$*g+sxBD~x#>_2ib_!qV_6JjUX{CYJpQukaU*7^HB?Rc$>G9+$iy YxK=c3F;0A7@wf|kTpqiF%Jq={2Nq#sjsO4v literal 1271 zcmbtT%WfK17(NF=z?ith#e-|R&B(+UunU+VT3KEAGPWV67%)~umFO_Q*r1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dmaGTes>h3E zfJb1~Q~M@~`M9p7`%NrC)^$R=h6_;eW!p3y%dxQx*`?44Brd{C!_${#S2qlPPdo}) z!)dp5JO(*edZtsu<1kxyypHbGx_(sh1Qhu7{jTL0EqoO2s?XzNY)kk!+XZ}rZ5f|r zyNFM*J&IIeIfkUO97n3MoIo-lU7tUKR8u;SB$bws>M-MarX6&BgF9{`H2~OkENiqQ zHTg(-=u0FMa;EJ|FF-m8nWod`Tni>$y&=1yi)2BrCN0V5q&B1_cY$muM8h?w!=)X7 zQSWrmb2>;aOh>(q!zGwj^SW{9K|XZHfe-h!2Ov(kR_G(GBoiWlkXB(jp1@opttBA?igYTO9+8UlbW%?ti}cK1 z%50d?Rfpu>u{b2eab?jL4xr6yr<;dPEOx0qCx4 znT8&ij3R9-LOYV*@N`mOL^{$L#l!;AKxrB2Ii-t8XO%Ko=ae#8=an*A&nsoNc34Zy z)&-@^)(c9RtzD&D@1oK&4*87H_ck0mV8Zy)O~x(`H)0n2rdbc7>!=(YZbE*Mw-Pq^1A> diff --git a/lib/adafruit_hid/mouse.mpy b/lib/adafruit_hid/mouse.mpy index d6641877977f1971aef053d7939948c7943323b7..18ecdc78953996aab37c078aff844fce24da6d94 100644 GIT binary patch literal 856 zcmY*UT~iWK7(TloAmXyXdJ?7Fz#vyk2Z_2w!9vp%MT}`0z-5)4_=;UjuQ zFt<6NWU(NWsxlZ#wS&8HmWog=Rb*f;R|HAIswCjQiX}X?BLJ!*h6VG64StP;lMBS%xF68Q z011sTp4gwDuNe=RkcaKO(7{06R`1P*>h>qzy3uw94$?;GRN#;bhwIRF0M9;y=VBbO zHVvT3Pe95~LfWr`HoqR)5kj19ZMp|K{03;XjrffL0x~h)q^^7>pou--huo;Ql1|&n z2HmUBW|i)12KEVU&|-Jj1Gx6bcqPrz6zf4(Q9q|S`qAz6#q{hdoSa4hu7YRh->8 zI(^kVK7D<7a{8u$zJ#?}6XVO;A;uTA7_Ua1w3S6qS+BRfuaanOt+w&MAbj`Kn2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