-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add keyboard #428
base: master
Are you sure you want to change the base?
Add keyboard #428
Conversation
Signed-off-by: Samuel Sloniker <sam@kj7rrv.com>
Signed-off-by: Samuel Sloniker <sam@kj7rrv.com>
Signed-off-by: Samuel Sloniker <sam@kj7rrv.com>
Tested the Pinetime build...flashed successfully but stuck the main.py screen. This tells me there is not enough memory to load the default clock. In safe mode the main.py is there. logs 35 main.py
|
Thank you @GaryM0101! Is there a way to precompile the module to reduce RAM usage, or is that already done as part of compiling the micropython.zip file? |
If your running A La Carte you can strip down the wasp.toml to run only
a default clock and your app. There is still no guarantee that it will
work.
My understanding is the python versions between the simulator and the
watch make it impossible to see if your app falls within the watch
memory threshold.
Gary
On 2023-06-26 09:36, Samuel Sloniker wrote:
Thank you @GaryM0101 [1]! Is there a way to precompile the module to reduce RAM usage, or is that already done as part of compiling the micropython.zip file?
--
Reply to this email directly, view it on GitHub [2], or unsubscribe [3].
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Okay, thank you @GaryM0101. My PineTime should arrive in the next couple weeks; I'll do more work on this then.
73
|
bg = draw.darken(theme("ui"), theme("contrast")) | ||
bg2 = draw.darken(bg, 2) | ||
|
||
self._draw_grid(draw, 0, bg2, lo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this line is moved to the end of the open
function, just before the self._draw()
call, then redraws for the shift or symbols keys will be somewhat faster.
Co-authored-by: Eloi Torrents <eloitor@disroot.org>
This PR adds a keyboard and an app to demonstrate it.
micropython.zip for PineTime
The keyboard can type any character that can be typed on a standard US QWERTY keyboard, except Tab.
As part of implementing the keyboard, it also adds an option to make the
wrap()
command ignore spaces.