pi-top / pi-top-Python-SDK

pi-top's Python SDK (pitop package)
Apache License 2.0
27 stars 4 forks source link

Add pygame-based simulation of pi-top hardware (some, more components to come later) #560

Closed angusjfw closed 1 year ago

angusjfw commented 1 year ago
Status Ticket/Issue
Ready/Hold Ticket

Main changes

-

Screenshots (feature, test output, profiling, dev tools etc)

[insert screenshots here]

Other notes (e.g. implementation quirks, edge cases, questions / issues)

Manual testing tips

-

Tag anyone who definitely needs to review or help

-

codecov[bot] commented 1 year ago

Codecov Report

Base: 56.97% // Head: 58.72% // Increases project coverage by +1.74% :tada:

Coverage data is based on head (b243428) compared to base (b8e144f). Patch coverage: 80.84% of modified lines in pull request are covered.

:exclamation: Current head b243428 differs from pull request most recent head 3bc099f. Consider uploading reports for the commit 3bc099f to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #560 +/- ## ========================================== + Coverage 56.97% 58.72% +1.74% ========================================== Files 133 140 +7 Lines 6443 6737 +294 ========================================== + Hits 3671 3956 +285 - Misses 2772 2781 +9 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `58.72% <80.84%> (+1.74%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pi-top#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/pi-top/pi-top-Python-SDK/pull/560?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pi-top) | Coverage Δ | | |---|---|---| | [pitop/miniscreen/oled/oled.py](https://codecov.io/gh/pi-top/pi-top-Python-SDK/pull/560/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pi-top#diff-cGl0b3AvbWluaXNjcmVlbi9vbGVkL29sZWQucHk=) | `74.75% <ø> (ø)` | | | [pitop/pma/imu\_controller.py](https://codecov.io/gh/pi-top/pi-top-Python-SDK/pull/560/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pi-top#diff-cGl0b3AvcG1hL2ltdV9jb250cm9sbGVyLnB5) | `32.91% <ø> (+0.19%)` | :arrow_up: | | [pitop/system/device.py](https://codecov.io/gh/pi-top/pi-top-Python-SDK/pull/560/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pi-top#diff-cGl0b3Avc3lzdGVtL2RldmljZS5weQ==) | `26.47% <0.00%> (ø)` | | | [pitop/virtual\_hardware/mock\_hardware/\_\_init\_\_.py](https://codecov.io/gh/pi-top/pi-top-Python-SDK/pull/560/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pi-top#diff-cGl0b3AvdmlydHVhbF9oYXJkd2FyZS9tb2NrX2hhcmR3YXJlL19faW5pdF9fLnB5) | `53.33% <53.33%> (ø)` | | | [...virtual\_hardware/mock\_hardware/vendor/Mock/GPIO.py](https://codecov.io/gh/pi-top/pi-top-Python-SDK/pull/560/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pi-top#diff-cGl0b3AvdmlydHVhbF9oYXJkd2FyZS9tb2NrX2hhcmR3YXJlL3ZlbmRvci9Nb2NrL0dQSU8ucHk=) | `53.39% <53.39%> (ø)` | | | [pitop/virtual\_hardware/simulation/simulation.py](https://codecov.io/gh/pi-top/pi-top-Python-SDK/pull/560/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pi-top#diff-cGl0b3AvdmlydHVhbF9oYXJkd2FyZS9zaW11bGF0aW9uL3NpbXVsYXRpb24ucHk=) | `93.45% <93.45%> (ø)` | | | [pitop/virtual\_hardware/simulation/simsprite.py](https://codecov.io/gh/pi-top/pi-top-Python-SDK/pull/560/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pi-top#diff-cGl0b3AvdmlydHVhbF9oYXJkd2FyZS9zaW11bGF0aW9uL3NpbXNwcml0ZS5weQ==) | `95.38% <95.38%> (ø)` | | | [pitop/virtual\_hardware/simulation/sprites.py](https://codecov.io/gh/pi-top/pi-top-Python-SDK/pull/560/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pi-top#diff-cGl0b3AvdmlydHVhbF9oYXJkd2FyZS9zaW11bGF0aW9uL3Nwcml0ZXMucHk=) | `95.65% <95.65%> (ø)` | | | [pitop/system/pitop.py](https://codecov.io/gh/pi-top/pi-top-Python-SDK/pull/560/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pi-top#diff-cGl0b3Avc3lzdGVtL3BpdG9wLnB5) | `100.00% <100.00%> (ø)` | | | [pitop/virtual\_hardware/\_\_init\_\_.py](https://codecov.io/gh/pi-top/pi-top-Python-SDK/pull/560/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pi-top#diff-cGl0b3AvdmlydHVhbF9oYXJkd2FyZS9fX2luaXRfXy5weQ==) | `100.00% <100.00%> (ø)` | | | ... and [4 more](https://codecov.io/gh/pi-top/pi-top-Python-SDK/pull/560/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pi-top) | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pi-top). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pi-top)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

lgtm-com[bot] commented 1 year ago

This pull request introduces 6 alerts when merging e6478fd4a44158fad4de58adb6096cf38db7351b into fc2f43a4d2fa08715e2431987bc2a5890c455d4c - view on LGTM.com

new alerts:

lgtm-com[bot] commented 1 year ago

This pull request introduces 6 alerts when merging d86e69b03f9704d487701ea97e96bc4ff3d1ae3f into fc2f43a4d2fa08715e2431987bc2a5890c455d4c - view on LGTM.com

new alerts:

lgtm-com[bot] commented 1 year ago

This pull request introduces 6 alerts when merging 48d1c6db7a3c6a62587eb85717f9f523324af826 into fc2f43a4d2fa08715e2431987bc2a5890c455d4c - view on LGTM.com

new alerts:

lgtm-com[bot] commented 1 year ago

This pull request introduces 8 alerts when merging ff4d85b8ceac1f129e4f80f4a8b1728f92677e88 into fc2f43a4d2fa08715e2431987bc2a5890c455d4c - view on LGTM.com

new alerts:

lgtm-com[bot] commented 1 year ago

This pull request introduces 8 alerts when merging b24342889cabfb8cccde447197fda71159e8092f into b8e144ffcd514c664f67515e0707f8d0eb7cc68e - view on LGTM.com

new alerts:

lgtm-com[bot] commented 1 year ago

This pull request introduces 8 alerts when merging 236bdd8f26d569bfa3fdc780cba075c282a44a44 into b8e144ffcd514c664f67515e0707f8d0eb7cc68e - view on LGTM.com

new alerts:

lgtm-com[bot] commented 1 year ago

This pull request introduces 2 alerts when merging b404fb8d93599a042354d8e76b1c4d8e587d9048 into b8e144ffcd514c664f67515e0707f8d0eb7cc68e - view on LGTM.com

new alerts:

lgtm-com[bot] commented 1 year ago

This pull request introduces 2 alerts when merging 3bc099f89e4dd7df07eb03949d6b2a3ec9ee65cf into b8e144ffcd514c664f67515e0707f8d0eb7cc68e - view on LGTM.com

new alerts: