Jeff Epler
9cdfba2e47
Simplify argument checking to reduce translated strings
...
Build size on proxlight trinkey m0 en_US:
Before: 2412 (en_US) 820 (ru)
After: 2544 (en_US) 984 (ru)
Savings: +132 (en_US) +164 (ru) bytes available flash
2022-11-07 12:37:11 -06:00
Jeff Epler
907c5d387f
Tweak black_bindings
...
Originally, black_bindings found each contiguous "//|" block and sent
it to black independently. This was slower than it needed to be.
Instead, swap the comment prefix: when running black, take off
"//|" prefixes and put "##|" prefixes on all un-prefixed lines.
Then, after black is run, do the opposite operation
This more than doubles the overall speed of "pre-commit run --all",
from 3m20s to 55s CPU time on my local machine (32.5s to under 10s
"elapsed" time)
It also causes a small amount of churn in the bindings, because
black now sees enough context to know whether one 'def' follows another
or ends the 'def's in a 'class'. In the latter case, it adds an extra
newline, which becomes a "//|" line.
I'm less sure why a trailing comma was omitted before down in
rp2pio/StateMachine.c but let's roll with it.
2022-09-30 11:18:13 -05:00
Jeff Epler
b2cc8d2aad
run black_bindings across all bindings
2022-09-27 15:21:42 -05:00
Scott Shawcroft
9d10a3da66
Conditionalize LTO
2022-05-27 12:59:54 -07:00
Dan Halbert
11c8080577
touch up doc
2021-10-18 16:26:12 -04:00
Dan Halbert
a911cbef51
check that boot device is interface #0 ; remove instrumentation
2021-10-13 12:30:01 -04:00
Dan Halbert
8b97ad1b7e
remove unused self in usb_hid_enable
2021-10-07 14:37:57 -04:00
Dan Halbert
1ae69b5cc5
debugging, with instrumentation
2021-10-07 08:19:53 -04:00
Dan Halbert
24c6295ed4
Boot protocol and feature reports: compiles; needs to be tested
2021-10-04 22:48:18 -04:00
Rob Capellini
1c8828223f
Convert more modules to use MP_REGISTER_MODULE
...
Convert neopixel_write, onewireio, ps2io, pulseio, pwmio, rainbowio, random, rgbmatrix, rotaryio, rtc, sdcardio, sharpdisplay, _stage, storage, struct, supervisor, synthio, touchio, traceback, usb_cdc, usb_hid, usb_midi, and vectorio modules to use MP_REGISTER_MODULE.
Related to #5183 .
2021-08-30 22:29:51 -04:00
Dan Halbert
3dc2b4c2d3
at least original functionality with new API
2021-08-14 12:36:40 -04:00
Dan Halbert
fa6c06fb38
count in/out endpoints; allow more usb modules on low-endpoint boards
2021-05-13 21:59:02 -04:00
Dan Halbert
adc3d7d55e
update Python API according to review comments
2021-05-03 22:29:02 -04:00
Dan Halbert
cc95b71d64
fix type annotations
2021-04-30 09:40:40 -04:00
Dan Halbert
b8b20faa20
doc fixes
2021-04-29 23:51:39 -04:00
Dan Halbert
f06d54524d
merge from adafruit
2021-04-28 23:48:26 -04:00
Dan Halbert
f98a54628b
wip: compiles
2021-04-27 14:37:36 -04:00
Dan Halbert
7a40b4daec
very much WIP
2021-04-26 23:54:01 -04:00
Dan Halbert
c26e49c2e6
wip: starting to try to compile
2021-04-25 23:17:41 -04:00
Dan Halbert
556a126917
wip: getting closer
2021-04-23 21:44:13 -04:00
Dan Halbert
2b4c88d633
wip: partial HID, still needs rework
2021-04-23 00:18:05 -04:00
microDev
a52eb88031
run code formatting script
2021-03-15 19:27:36 +05:30
Taku Fukada
54a342a7f5
Add and correct some type hints
2020-07-24 18:20:03 +09:00
Scott Shawcroft
4e8de3c554
Swap sphinx to autoapi and the inline stubs
2020-05-12 17:28:24 -07:00
dherrada
6490137812
Did usb_hid, usb_midi, ustack, wiznet
2020-05-12 12:08:46 -04:00
Scott Shawcroft
714521a4c7
shared-bindings: Update docs to remove with statements from examples but add more detail to the design guide about their use.
2017-06-07 14:39:12 -07:00
Scott Shawcroft
d598c2a919
atmel-samd: Add USB HID mouse and keyboard support.
2017-02-27 15:43:58 +01:00