Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs/tildagon-apps/reference/badge-hardware.md
Browse files Browse the repository at this point in the history
npentrel authored Jun 19, 2024
1 parent 99d408b commit c3131dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tildagon-apps/reference/badge-hardware.md
Original file line number Diff line number Diff line change
@@ -436,11 +436,11 @@ class ExampleApp(app.App):

def draw(self, ctx):
ctx.save()
ctx.rgb(0.2,0,0).rectangle(-120,-120,240,240).fill()
ctx.rgb(0.2, 0, 0).rectangle(-120, -120, 240, 240).fill()
if self.steps_read:
ctx.rgb(1,0,0).move_to(-80,-40).text("steps:\n{}\n".format(self.steps_read))
ctx.rgb(1, 0, 0).move_to(-80, -40).text("steps:\n{}\n".format(self.steps_read))
else:
ctx.rgb(1,0,0).move_to(-80,0).text("no readings yet")
ctx.rgb(1, 0, 0).move_to(-80, 0).text("no readings yet")
ctx.restore()

__app_export__ = ExampleApp

0 comments on commit c3131dc

Please sign in to comment.