<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wasp-os.git/wasp/apps/calc.py, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/'/>
<entry>
<title>Optimize flash usage of calc app</title>
<updated>2021-12-26T21:25:07Z</updated>
<author>
<name>Francesco Gazzetta</name>
<email>fgaz@fgaz.me</email>
</author>
<published>2021-11-30T15:10:02Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=fc756bccc943ab07b094af572dd9e6a7752fafa2'/>
<id>fc756bccc943ab07b094af572dd9e6a7752fafa2</id>
<content type='text'>
Signed-off-by: Francesco Gazzetta &lt;fgaz@fgaz.me&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Francesco Gazzetta &lt;fgaz@fgaz.me&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Calc app: fill gaps</title>
<updated>2021-10-16T09:32:03Z</updated>
<author>
<name>Rudy Ges</name>
<email>github@kla.bz</email>
</author>
<published>2021-10-09T19:02:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=90411fb9f8ec681fabadb5bd6b6ef75e1f20757d'/>
<id>90411fb9f8ec681fabadb5bd6b6ef75e1f20757d</id>
<content type='text'>
Closes #262

Signed-off-by: k &lt;k@klabz.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #262

Signed-off-by: k &lt;k@klabz.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>simulator: test_qa: Add some basic docstring tests</title>
<updated>2021-01-13T21:51:17Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2021-01-13T21:51:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=39d87830558540fefad1d4dd24a14f273bd4d5a7'/>
<id>39d87830558540fefad1d4dd24a14f273bd4d5a7</id>
<content type='text'>
This one picked up a lot of inconsistancy so the changes here are pretty
big.

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This one picked up a lot of inconsistancy so the changes here are pretty
big.

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>apps: calc: Use the UI colours to generate a background</title>
<updated>2020-12-31T19:26:34Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2020-12-31T19:14:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=71069e0170d22e60125d149630416e9dab7042a5'/>
<id>71069e0170d22e60125d149630416e9dab7042a5</id>
<content type='text'>
Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>apps: calc: Remember the results between invocations</title>
<updated>2020-12-29T08:59:53Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2020-12-28T14:48:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=0318640f620d75098ccf535fea30f716ea625515'/>
<id>0318640f620d75098ccf535fea30f716ea625515</id>
<content type='text'>
Currently if you spend more then 15 seconds looking up figures or
transcribing the answer then the system will switch back to the
clock and the answer will be lost.

Fix this by remembering the output between invocations.

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently if you spend more then 15 seconds looking up figures or
transcribing the answer then the system will switch back to the
clock and the answer will be lost.

Fix this by remembering the output between invocations.

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>apps: calc: Rewrite the display and calculation engine</title>
<updated>2020-12-29T08:59:53Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2020-12-28T14:41:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=21210c5c072ddd174f91bd7c80a1b2a00cb39bf3'/>
<id>21210c5c072ddd174f91bd7c80a1b2a00cb39bf3</id>
<content type='text'>
Currently calculations such as 22/7 do not work correctly on the
simulator (which uses double precision floating point). Fix this
by explicitly truncating the strings when needed.

Additionally the current calculate() method has some problems when
the calculation cannot be evaluated since it will needlessly clear out
the calculation. Push calculate (and the exception handling) into the
caller and report errors using the vibration motor instead.

Finally we rename display_output() to the more idiomatic _update().

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently calculations such as 22/7 do not work correctly on the
simulator (which uses double precision floating point). Fix this
by explicitly truncating the strings when needed.

Additionally the current calculate() method has some problems when
the calculation cannot be evaluated since it will needlessly clear out
the calculation. Push calculate (and the exception handling) into the
caller and report errors using the vibration motor instead.

Finally we rename display_output() to the more idiomatic _update().

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>apps: calc: Optimize the fields lookup structure</title>
<updated>2020-12-29T08:59:53Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2020-12-28T14:37:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=e570bf4f262180f09d8b6bdef393d529c567b238'/>
<id>e570bf4f262180f09d8b6bdef393d529c567b238</id>
<content type='text'>
Currently the fields is a list of lists of strings. This will needlessly
consume RAM so lets switch it over to a simple string (which is immutable
and can be stored in flash).

We also replace indices with simple x and y variables. In addition to
avoiding a (temporary) memory allocation this is also easier to use
when looking up in fields.

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently the fields is a list of lists of strings. This will needlessly
consume RAM so lets switch it over to a simple string (which is immutable
and can be stored in flash).

We also replace indices with simple x and y variables. In addition to
avoiding a (temporary) memory allocation this is also easier to use
when looking up in fields.

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>apps: calc: Draw a closed grid</title>
<updated>2020-12-29T08:59:53Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2020-12-28T14:32:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=60fecc946934fc95ed20479e50cc3aacceb58b37'/>
<id>60fecc946934fc95ed20479e50cc3aacceb58b37</id>
<content type='text'>
Currently the calculator uses an open grid. It's a matter of taste but
I prefer a closed grid.

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently the calculator uses an open grid. It's a matter of taste but
I prefer a closed grid.

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>apps: calc: Correct after draw565 bug fix</title>
<updated>2020-12-29T08:59:53Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2020-12-28T14:32:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=0884d22799c980e0063f81084a019682a9c8a796'/>
<id>0884d22799c980e0063f81084a019682a9c8a796</id>
<content type='text'>
Currently the coordindates used for line drawing are "tuned" for a bug in
the line drawing code (and now draw off the edge of the screen). Fix this.

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently the coordindates used for line drawing are "tuned" for a bug in
the line drawing code (and now draw off the edge of the screen). Fix this.

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>apps: calc: Adopt the system theme for accent colors</title>
<updated>2020-12-28T14:24:00Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2020-12-28T14:24:00Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=6d74d4f585d3b9d8706da0c9584a8a87e5133c97'/>
<id>6d74d4f585d3b9d8706da0c9584a8a87e5133c97</id>
<content type='text'>
Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</pre>
</div>
</content>
</entry>
</feed>
