Search found 28 matches

by Jerremy09
Wed Jul 21, 2021 3:53 pm
Forum: Programs, Libraries and Tools
Topic: Timers - several timers + several run per day
Replies: 3
Views: 1546

Re: Timers - several timers + several run per day

Hi there, I think I figured it out :-) (as test example) import uasyncio # Define Function to be planned async def text1(text,time): while True: print(text) await uasyncio.sleep(time) # Delete infinite loop try: import uasyncio uasyncio.Loop.stop() uasyncio.Task.cancel() except: pass # Define infini...
by Jerremy09
Wed Jul 21, 2021 7:28 am
Forum: Programs, Libraries and Tools
Topic: Timers - several timers + several run per day
Replies: 3
Views: 1546

Timers - several timers + several run per day

Hello all, I would need help from you. I´m trying to build my own solution to build a machine that will TurnON/OFF 2 devices based on the scheduler. So my task also was to split the day into 3 periods: 1) morning 2) Day 3) evening - each period may start/end at a specified time. and "Switch" can be ...
by Jerremy09
Mon Mar 30, 2020 12:56 pm
Forum: General Discussion and Questions
Topic: Pause While loop by IRQ
Replies: 3
Views: 3129

Re: Pause While loop by IRQ

Hi, thank you for the reply. think is that during while cycle inside "Move_MR.py" the designed IRQ "Stepp_Count" is not triggered: - first IRQ is done on display by xpt2046 (works well) - second IRQ should be done by Stepp_Count - PIN25 and PIN26 are physically connected by wire Program: boot.py: Em...
by Jerremy09
Mon Mar 30, 2020 11:01 am
Forum: General Discussion and Questions
Topic: Pause While loop by IRQ
Replies: 3
Views: 3129

Pause While loop by IRQ

Hello, is there a way how to pause "While loop" by IRQ signal and then continue back in while? Reason : I have an external signal connected to one of the pins (counting number of signals), this part of code is supposed to work while the time the "While loop" operates another part of code. and if Cou...
by Jerremy09
Thu Mar 12, 2020 3:24 pm
Forum: General Discussion and Questions
Topic: Global IRQ function
Replies: 2
Views: 1946

Re: Global IRQ function

Hello, I changed the variable in "Wait_Time.py" into "Counter_Inter". But still do not work. I also add "Print(some informaiton here)" into: 1) Count function - that one which is called by IRQ - "print("Loop: "+str(Counter))" 2) while cycle (Blink.py) - "print("While: "+str(Counter))" 3) Wait cycle ...
by Jerremy09
Wed Mar 11, 2020 4:36 pm
Forum: General Discussion and Questions
Topic: Global IRQ function
Replies: 2
Views: 1946

Global IRQ function

Hello All, I would like to ask you for help with "Global Function". What I need: I need a program to react on impulse (machine.IN) from PWM (also generated by ESP32) to count impulse and when the count reaches a specific amount (like 100, 10, 32000 or different) then break while cycle in "Blink.py"....
by Jerremy09
Mon Jan 27, 2020 8:22 pm
Forum: Programs, Libraries and Tools
Topic: "machine.RTC" alarm + set irq
Replies: 7
Views: 4793

Re: "machine.RTC" alarm + set irq

Hello Peter, thank you for your post. Unfortunately I think that "Why loop" cannot be used, because there is more things in program. Those daily "Jobs" meant to run on background as User will operate touch display. So point is that I would like to build something like "Windows Scheduler" - there wil...
by Jerremy09
Mon Jan 27, 2020 1:56 pm
Forum: Programs, Libraries and Tools
Topic: "machine.RTC" alarm + set irq
Replies: 7
Views: 4793

Re: "machine.RTC" alarm + set irq

Hello all, thank you for reaction. I need to create system which will be doing some function in scheduled way. Those functions are external modules (created by me). So for example, I would like to do these kind of things: 1) every 1 hour read GPRS signal - run external module 2) every 1 hour read Wi...
by Jerremy09
Tue Jan 21, 2020 8:51 pm
Forum: Programs, Libraries and Tools
Topic: "machine.RTC" alarm + set irq
Replies: 7
Views: 4793

Re: "machine.RTC" alarm + set irq

Hello,

thank you for answer. Unfortuantelly I didnt want to hear this, never the less, is there a way to have something similar to give me at least similar result?

Dont you know for which type of board the those RTC functions are available?

Thank you
by Jerremy09
Tue Jan 21, 2020 6:45 pm
Forum: Programs, Libraries and Tools
Topic: "machine.RTC" alarm + set irq
Replies: 7
Views: 4793

"machine.RTC" alarm + set irq

Hello All, from my unknown reason I cannot set time based "irq" function. I red in documentaiton: "http://docs.micropython.org/en/latest/library/machine.RTC.html" that "Create an irq object triggered by a real time clock alarm.". so I tried to set allarm in boot.py, but always receive this error in ...