Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flow3r
flow3r firmware
Commits
55086900
Commit
55086900
authored
1 year ago
by
pippin
Browse files
Options
Downloads
Patches
Plain Diff
apps: remove extra state setting in cap-touch and worms demos
parent
e3cc7c46
No related branches found
No related tags found
1 merge request
!54
st3m: wrap rendered frames in save/restore pair
Pipeline
#6145
passed
1 year ago
Stage: check
Stage: build
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
python_payload/apps/demo_cap_touch/main.py
+0
-3
0 additions, 3 deletions
python_payload/apps/demo_cap_touch/main.py
python_payload/apps/demo_worms/__init__.py
+0
-8
0 additions, 8 deletions
python_payload/apps/demo_worms/__init__.py
with
0 additions
and
11 deletions
python_payload/apps/demo_cap_touch/main.py
+
0
−
3
View file @
55086900
...
@@ -70,9 +70,6 @@ class CapTouchDemo(application.Application):
...
@@ -70,9 +70,6 @@ class CapTouchDemo(application.Application):
def
draw
(
self
,
ctx
:
Context
)
->
None
:
def
draw
(
self
,
ctx
:
Context
)
->
None
:
# print(self.last_calib)
# print(self.last_calib)
# TODO (q3k) bug: we have to do this, otherwise we have horrible blinking
ctx
.
rgb
(
1
,
1
,
1
)
ctx
.
rgb
(
0
,
0
,
0
).
rectangle
(
-
120
,
-
120
,
240
,
240
).
fill
()
ctx
.
rgb
(
0
,
0
,
0
).
rectangle
(
-
120
,
-
120
,
240
,
240
).
fill
()
for
i
,
dot
in
enumerate
(
self
.
dots
):
for
i
,
dot
in
enumerate
(
self
.
dots
):
dot
.
draw
(
i
,
ctx
)
dot
.
draw
(
i
,
ctx
)
...
...
This diff is collapsed.
Click to expand it.
python_payload/apps/demo_worms/__init__.py
+
0
−
8
View file @
55086900
...
@@ -49,14 +49,6 @@ class AppWorms(Application):
...
@@ -49,14 +49,6 @@ class AppWorms(Application):
def
draw
(
self
,
ctx
:
Context
)
->
None
:
def
draw
(
self
,
ctx
:
Context
)
->
None
:
if
self
.
bufn
<=
5
:
if
self
.
bufn
<=
5
:
# TODO (q3k) bug: we have to do this, otherwise we have horrible blinking
ctx
.
rgb
(
*
BLUE
).
rectangle
(
-
120
,
-
120
,
240
,
240
).
fill
()
ctx
.
rgb
(
1
,
1
,
1
)
ctx
.
rgb
(
*
BLUE
).
rectangle
(
-
120
,
-
120
,
240
,
240
).
fill
()
ctx
.
rgb
(
1
,
1
,
1
)
ctx
.
rgb
(
*
BLUE
).
rectangle
(
-
120
,
-
120
,
240
,
240
).
fill
()
ctx
.
rgb
(
*
BLUE
).
rectangle
(
-
120
,
-
120
,
240
,
240
).
fill
()
ctx
.
text_align
=
ctx
.
CENTER
ctx
.
text_align
=
ctx
.
CENTER
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment