- 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>
-
- Oct 03, 2019
-
-
Signed-off-by:
Mateusz Zalega <mateusz@appliedsourcery.com>
-
rahix authored
When MXC_ASSERT is disabled, the portexpander_config() call is not compiled into the bootloader which leads to the portexpander not being setup correctly and thus neither the screen turns on nor does the button to switch into MSC mode work correctly (bootloader always goes into MSC mode). Fix this by moving the portexpander_config() call outside the MXC_ASSERT and only keep the return value check inside. Additionally fix the pull-up/pull-down selection in portexpander_config() not being set correctly. Ref #171 Signed-off-by:
Rahix <rahix@rahix.de>
-
- Oct 01, 2019
-
-
Tobias Schneider authored
-
schneider authored
-
schneider authored
-
schneider authored
-
- Sep 14, 2019
-
-
schneider authored
Also modifies the PMIC UI code to be more intuitive
-
- Sep 07, 2019
-
-
fleur authored
-
- Sep 06, 2019
-
-
Woazboat authored
-
- Sep 05, 2019
-
-
Modify PB callback interface to allow distinction between up/down events.
-
-
-
- Add portexpander interrupt handling - Prevent redundant interrupts between polling portexpander
-
- Aug 31, 2019
-
- Aug 30, 2019
-
- Aug 28, 2019
-
-
Jannis Rieger authored
-
- Aug 27, 2019
-
-
Hinerk authored
-
- Aug 24, 2019
-
-
dx authored
It only has 27 characters, which as far as I can tell are useless for actual chinese text. Copying the list of characters in the same order of font24CN.c into google trans gives out this almost meaningful message: > Hello, Microsoft Yahei, the corresponding dot matrix for this font is > Raspberry Pi Aabc Micro Snow Electronics
-
Stefan Haun authored
Lines have been one pixel too short.
-
- Aug 22, 2019
-
-
schneider authored
-
schneider authored
-
schneider authored
-
Manuel Kasten authored
-
Manuel Kasten authored
-
schneider authored
-
Marek authored
I have no idea whether this is something the compiler wouldn't automatically do, but it can't hurt to be explicit.
-
- Aug 21, 2019
-
-
schneider authored
-
Jannis Rieger authored
-
Jannis Rieger authored
-
Jannis Rieger authored
-
Jannis Rieger authored
-
rahix authored
RTC_Init will turn off the RTC and readout will not be possible until RTC_EnableRTCE is called. The previous version worked because the bootloader would call RTC_Init and Epicardium would then call RTC_EnableRTCE. This broke with the hardware-init changes in b76ac8fc and lead to behavior where cold boot would not enable the RTC. This commit switches the order of the two calls in the bootloader so it is always initialized correctly. Because some older bootloaders are already out in the field, this commit also introduces basic rtc init into Epicardium so the new firmware can work correctly with older bootloaders. Signed-off-by:
Rahix <rahix@rahix.de>
-
- Aug 20, 2019
-
-
Martin Ling authored
This reverts part of ffce77e1.
-
rahix authored
Signed-off-by:
Rahix <rahix@rahix.de>
-
rahix authored
The bootloader will have initialized the display in all cases so we don't need to repeat the same init code all over again. Signed-off-by:
Rahix <rahix@rahix.de>
-
rahix authored
Signed-off-by:
Rahix <rahix@rahix.de>
-