- Jun 25, 2020
-
-
schneider authored
-
- Jun 15, 2020
- Jun 14, 2020
-
-
schneider authored
Create weak links from MicroPython specific implementations of modules to standard names. I.e. allow `import time` to import utime module.
-
- May 21, 2020
-
-
rahix authored
It's 44 years since the release of vi and sadly lots of editors still don't care about trimming off trailing spaces ... Signed-off-by:
Rahix <rahix@rahix.de>
-
- Apr 08, 2020
-
-
schneider authored
-
- Apr 06, 2020
-
-
schneider authored
-
- Apr 03, 2020
- Mar 16, 2020
- Jan 31, 2020
- Jan 03, 2020
-
-
rahix authored
Instead of an ugly hack where spaces are used to pad the entries background colors, properly draw a rectangle and the text above it. No visual change. Signed-off-by:
Rahix <rahix@rahix.de>
-
- Dec 09, 2019
-
-
rahix authored
Signed-off-by:
Rahix <rahix@rahix.de>
-
- Dec 06, 2019
-
-
rahix authored
Fix all warnings in pycardium/modules. Signed-off-by:
Rahix <rahix@rahix.de>
-
rahix authored
As discussed in card10/firmware!357, we should increase the number of enabled compiler warnings to catch a lot more silent bugs. Increase the meson-global warning level to 2, but excluding the `unused-parameter` and `old-style-declaration` warnings. Additionally, disable warnings for libraries as we cannot fix that code anyway. Signed-off-by:
Rahix <rahix@rahix.de>
-
- Nov 19, 2019
-
-
fuchsi* authored
-
- Nov 13, 2019
-
-
rahix authored
Implement the hal functions necessary for utime.ticks_ms() and utime.ticks_us(). This enables much more accurate measurements of time taken in Pycardium (useful for profiling). Please note that the tick counter will reset whenever a new app is loaded. Signed-off-by:
Rahix <rahix@rahix.de>
-
The framebuf module provides a framebuffer implementation running purely in MicroPython which will increase drawing performance by a lot. A follow-up change will be necessary to connect this framebuffer implementation to the display API. This commit is implements a part of MR !211.
-
rahix authored
Rewrite the delay implementation to be more accurate and properly handle incoming MicroPython interrupts (See issue #177). For this, the delay is split into two functions: - systick_delay_precise(): Delay with microsecond accuracy for delays less than 1 ms. - systick_delay_sleep(): Sleep for a potentially very long time, using WFI to put the CPU to sleep. Whenever the CPU wakes up, this function will poll the MicroPython scheduler so it can execute pending interrupts. Ontop, this implementation allows for a future, fast, tick-based monotonic time implementation (e.g. mp_hal_ticks_ms). Signed-off-by:
Rahix <rahix@rahix.de>
-
- Nov 11, 2019
-
-
rahix authored
Enable the input() builtin which allows reading from the serial console. Signed-off-by:
Rahix <rahix@rahix.de>
-
- Nov 10, 2019
- Nov 09, 2019
-
-
rahix authored
Allow calling buttons.read() without an argument. This is equivalent to a mask with all bits set (that is, buttons.read(255)). Additionally, add a check that the mask is within the limits (< 256). Signed-off-by:
Rahix <rahix@rahix.de>
-
rahix authored
For convenience, allow calling os.listdir() without any argument. This is equivalent to calling os.listdir(""). Signed-off-by:
Rahix <rahix@rahix.de>
-
- Oct 05, 2019
-
-
Fix two bugs in the display/gfx module: 1. The animation of the simple_menu used in the main menu had the issue that there is a black line visible at the top. This is due the gfx_puts method ignoring lines, where the top pixel of the string is above the top of the screen. As gfx_puts uses gfx_setpixel which in turn ignores pixels outside of the screen, remove the check in gfx_puts. 2. X and Y coordinates were cast to unsigned-ints before being given to the gfx-library which means calls like circ(0, -10, 30) would be draw at coordinates like [0,65526]. Fix this by changing the data-type of all coordinates to signed-integers. Also remove the x and y ranges from the documentation of the individual python functions and instead add a general documentation about the screen and it's size/coordinate system.
- Oct 04, 2019
-
-
rahix authored
Previously, we left out the dependency of the QSTR header on `modules.h`. This was done to prevent rebuilds of the entire MicroPython sources whenever a Pycardium module is changed. This leads to issues where QSTRs got out of sync and weird errors like the following could happen: import foo_module Exception: No module `abc_def` (a different string than expected) Attempt to fix this by only updating the QSTR header when the module-header actually changes. For this, a few workarounds are needed: - Replace symlinks with actual copied files so timestamps change on updates. - Add a hack so meson picks up on the dependency of the file in genhdr/ - Rename the outer file so older meson versions don't complain about multiple targets with the same name. Co-authored-by:
dx <dequis@dequis.org> Signed-off-by:
Rahix <rahix@rahix.de>
-
rahix authored
Signed-off-by:
Rahix <rahix@rahix.de>
-
- Sep 25, 2019
-
-
Ferdinand Bachmann authored
-
- Sep 22, 2019
-
- Sep 21, 2019
-
-
Squashed commits: e94f7bf9 epicardium/rtc: add monotonic time e0691c6d pycardium/modules/utime.c: add bindings for monotonic time 756c13df epicardium/rtc: fix numerically unstable subsecond decoding the subsecond encoding function from epic_rtc_set_milliseconds and the corresponding decoding function from epic_rtc_get_milliseconds are not numerically stable. i.e., encoding 5 milliseconds to 20 subsecs and immediately afterwards decoding that yields 4 milliseconds. Adding a bias of 999 (0.24 milliseconds) to the decoding function makes it numerically stable, while never decoding any subsecond value to more than 999 milliseconds. e99e278b epicardium/rtc: only poll time once for calculating monotonic_offset 18936b7e pycardium/modules/utime.c: run clang-format 869ac617 epicardium/rtc: add explanation comment for numerically stable subsecond decode
-
- Sep 16, 2019
-
- Sep 14, 2019
-
-
rahix authored
Fixes #155 Signed-off-by:
Rahix <rahix@rahix.de>
-
- Sep 06, 2019
-
-
fleur authored
-