-
Notifications
You must be signed in to change notification settings - Fork 10
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
Cannot run (Linux Mint) #23
Comments
I have used Thonny to upload all files and run main.py from there. All ok! :-) I also see that "run" is python script, so I will have a look on that why there is a problem with my serial port. Great job! I will prepare fork of this repo. |
I use run as a bash script, so I am not sure. To be honest I ported this repo over to Rust and built it mostly again with that anyway. A fork and continued development in that is probably recommended! |
I am quite new to Python. I see in your code a lot of stuff I have never used. There is probably no documentation available, right? My goal was to reuse parts of your code (like display driver) and build own clock. My current requirements:
Maybe you will have some advice for me how to start. If not, I will keep trying to understand your code. |
Hi, yeah no docs available. I never got round to fully finishing off the project. The apps concept is that one app can essentially take resources (like telling the buttons how to behave) and update the display. The scheduler concept is just a small wrapper around uasyncio. Each task gets its own event loop which just runs a loop that calls some code every x milliseconds. In case of the display, that is the update leds function. To disable the display, you would just need to remove and add a new task to the scheduler when a button press happens. You would obviously need to be scanning for the button press. It's hard to be more exact unless I know exactly which areas and what parts you don't understand, but I'm happy to try and explain where I can. |
Hello Dom!
Thanks for quick reply and thanks for giving me more details about your
work.
I will have a look on your code more deeply trying to play with that.
I may be late with my next reply as I have opened too many projects in
parallel. :-)
I guess that you have also some piece of code that checks button states.
So maybe this is where I start with. Also I will read about uasyncio.
Talk you later!
Sany
…On Thu, Dec 21, 2023 at 6:49 AM Dom Needham ***@***.***> wrote:
Hi, yeah no docs available. I never got round to fully finishing off the
project.
The apps concept is that one app can essentially take resources (like
telling the buttons how to behave) and update the display.
The scheduler concept is just a small wrapper around uasyncio. Each task
gets its own event loop which just runs a loop that calls some code every x
milliseconds. In case of the display, that is the update leds function.
To disable the display, you would just need to remove and add a new task
to the scheduler when a button press happens. You would obviously need to
be scanning for the button press.
It's hard to be more exact unless I know exactly which areas and what
parts you don't understand, but I'm happy to try and explain where I can.
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHQEWRT7EQMXYP4FPJDHJILYKPEWNAVCNFSM6AAAAABAOAVWW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRVGUYTMNJWGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi Dom! Thanks for potential reply! |
Is there any other way how to run clock?
The text was updated successfully, but these errors were encountered: