Repository navigation
extmod/machine_signal: Add Signal print function. - #12291
IhorNehrutsa wants to merge 1 commit into
Conversation
89f3299 to
6abd27c
Compare
|
Code size report: |
6abd27c to
9ea6255
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #12291 +/- ##
=======================================
Coverage 98.51% 98.51%
=======================================
Files 177 177
Lines 22992 22995 +3
=======================================
+ Hits 22651 22654 +3
Misses 341 341 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@jimmo |
9ea6255 to
19bb27a
Compare
jimmo
left a comment
There was a problem hiding this comment.
Thanks @IhorNehrutsa -- I think this is useful.
Having this is useful for debugging and we already do it for Pin, so Signal should match. If all this printing support is too much code size we could consider making it a build option (e.g. MICROPY_PY_MACHINE_DETAILED_PRINTING) similar to how we do terse/detailed error messages.
19bb27a to
6a62f30
Compare
6a62f30 to
c1a6cb3
Compare
c1a6cb3 to
760241c
Compare
760241c to
e17c6f2
Compare
e17c6f2 to
c9843c3
Compare
This comment was marked as outdated.
This comment was marked as outdated.
|
Ready |
|
Thanks for rebasing. But honestly, the increase in code size is quite substantial for a feature like this that's rarely used/requested so far. |
81987e0 to
dda7fd4
Compare
44951c7 to
b744e98
Compare
d334fd5 to
083cfa4
Compare
Test code is: ``` from machine import Pin, Signal signal22= Signal(Pin(22, mode=Pin.OUT)) signal22 signal21= Signal(Pin(21, mode=Pin.IN), invert=True) signal21 ``` Ounput is: ``` Signal(Pin(22)) Signal(Pin(21), invert=True) ``` instead of ``` <Signal> <Signal> ``` Signed-off-by: IhorNehrutsa <[email protected]>
083cfa4 to
500c453
Compare
Test code is:
Ounput is:
instead of