- Nov 13, 2021
-
- Nov 01, 2021
-
-
rahix authored
-
- Oct 01, 2021
- Sep 23, 2021
-
-
schneider authored
- Sep 20, 2021
-
- Sep 19, 2021
-
-
schneider authored
-
schneider authored
-
rahix authored
-
rahix authored
-
schneider authored
-
schneider authored
-
rahix authored
When core 1 repeatedly calls `epic_sleep()`, this could delay an epic_load() from core 0 because the reset interrupt can only be delivered after such a call completed. To work around this, add calls into `do_load()` to notify the dispatcher task that it should return early from calls like `epic_sleep()`. This gets a bit tricky because the dispatcher task also uses `ulTaskNotifyTake()` to wake up when new API calls arrive. To make sure we still break out of `epic_sleep()`, we need to call `xTaskNotifyGive()` twice in the wait loop.
-
rahix authored
"Cache" the local sleep value to not send repetitive sleep-out commands to the display when the user repeatedly sets the backlight.
-
rahix authored
-
rahix authored
Previously, such lines would be drawn as a fuzzy two-pixel wide line instead of a sharp one-pixel one. This is because the coordinate grid is aligned _between_ pixels instead of on the pixel centers. More information in this cairo FAQ: https://www.cairographics.org/FAQ/#sharp_lines For odd linewidths, add 0.5 to all coordinates to offset the line perfectly onto the pixel grid. This makes them look sharp, as with the previous gfx code. Suggested-by:
Øyvind Kolås <pippin@gimp.org>
-
rahix authored
Not sure why I didn't do this right away, but using 1.95 makes the circles look much better. Using 2 leads to a small artifact on the right side so we have to stay slightly below...
-
rahix authored
Remove the last remaining piece of gfx integration. With this, the card10 firmware is now fully rendering using ctx instead!
-
rahix authored
Reimplement `epic_disp_blit()` without relying on the gfx library.
-
rahix authored
Make the new ctx based implementation behave just like the old one. This means _including_ the yend row and xend column. This fixes the G-Watch and DigiClk not looking as they should.
-
rahix authored
Use ctx to display the panic message. The implementation contains a few safeguards to hopefully deal with any breakage that happended before the panic.
-
rahix authored
With the PMIC task calling graphics code, it now needs a bit more stack space. Increase the allocation to ensure we won't get a stack overflow here.
-
rahix authored
Instead of duplicating the drawing code in the personal state menu, reuse the method from the parent class. This reduces code duplication but most importantly means the personal state app can benefit from fixes in the "upstream" code. Concretely, due to the changes related to ctx, this fixes visual artifacts produced by the "custom" rendering code (black areas to the right of the text).
-
rahix authored
-
rahix authored
Replace the gfx-based implementations of the Epicardium display API calls with ctx-based ones that try to mimick the old behavior as much as possible. In the long run, these functions are just meant for backwards compatibility while new code should interface with ctx directly (once this becomes possible). The implementations in this changeset are closely based on pippin's original Pycardium display API reimplementation. Co-developed-by:
Øyvind Kolås <pippin@gimp.org>
-
rahix authored
Adds the most basic ctx integration, by just initializing the context and nothing more.
-
rahix authored
-