Commit Graph

34 Commits

Author SHA1 Message Date
Jeff Epler
774f6ac6ab
Switch to using MP_ERROR_TEXT instead of translate, globally 2023-10-30 09:49:06 +01:00
Scott Shawcroft
e62db5adcd
Fix native property setting from subclass 2023-10-24 16:20:51 -07:00
Dan Halbert
4d175ab41a convert to MP_DEFINED_CONST_OBJ_TYPE() 2023-09-19 21:09:29 -04:00
Dan Halbert
0d2c3c3f08 wip: continuing compilation fixes; mp_obj_alloc everywhere 2023-08-07 20:45:57 -04:00
Scott Shawcroft
75046b3a58
Save space with consolidated errors 2023-04-25 13:26:48 -07:00
MicroDev
d9d94eacca
run updated pre-commit 2023-02-01 13:38:41 +05:30
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
gamblor21
f134f86291 Two small fixes, remove hardcoded height and non-scale issues 2022-08-19 15:13:38 -05:00
Jeff Epler
78cf0a90af
Make MP_PROPERTY_GETTER / _GETSET fully declare the property
This will enable setting data attributes, namely, the section of the
symbol.
2022-05-03 08:48:53 -05:00
Jeff Epler
31da335cac
Introduce, use MP_PROPERTY_GETTER, _GETSET
Later, these can be changed in cunning ways to save flash storage.
2022-05-03 08:48:52 -05:00
gamblor21
02728f1668 Doc changes 2022-01-31 16:23:07 -06:00
gamblor21
19660ec66d Doc and KW_REQ changes 2022-01-28 14:12:05 -06:00
gamblor21
6916307e76 Doc fix 2022-01-27 18:17:38 -06:00
gamblor21
31e183ddad Documentation fix to the fix 2022-01-27 18:01:27 -06:00
gamblor21
d8a7fa025d Documentation fixes 2 2022-01-27 16:49:54 -06:00
gamblor21
dd729d8fef Documentation updates 2022-01-26 19:42:21 -06:00
gamblor21
563d8f297c Major refractor to make a common base object 2022-01-23 13:12:37 -06:00
gamblor21
cf2c8eeec4 Moved init functions to helper python library 2022-01-17 16:13:27 -06:00
gamblor21
bb8ad7f611 Fixed doc 2021-12-14 22:44:27 -06:00
gamblor21
7c1afb070a Documentation fixes 2021-12-13 22:31:29 -06:00
gamblor21
9fafd7d7fd Initial commit 2021-12-13 22:31:29 -06:00
gamblor21
97032fdbd0 Renaming files 2021-11-23 17:21:13 -06:00
gamblor21
9f2660f6ac Capitalization changes 2021-11-23 17:06:39 -06:00
gamblor21
9b85714b76 Removed unused imports 2021-11-23 13:24:36 -06:00
gamblor21
c38612d59d Fixed capitalization 2021-11-21 11:39:42 -06:00
gamblor21
5243a33584 Check map to display size 2021-11-20 14:04:49 -06:00
gamblor21
16c52b76d6 Capitalize module 2021-11-20 14:04:49 -06:00
gamblor21
6b2d43d3c8 Mapping for LEDs to diplay 2021-11-20 14:04:49 -06:00
gamblor21
9fa3feffb1 Cleanup 2021-11-20 13:46:12 -06:00
gamblor21
e877449ae0 Cleanup 2021-11-20 13:46:12 -06:00
gamblor21
aa92d3a476 Cleanup and scaling addition 2021-11-20 13:46:11 -06:00
gamblor21
29c58575b0 Removed prints updated brightness 2021-11-20 13:46:11 -06:00
gamblor21
d063bf2675 Initial commit for IS31 2021-11-20 13:46:11 -06:00