Search found 4 matches
- Mon Apr 25, 2022 6:18 am
- Forum: General Discussion and Questions
- Topic: Timer Never Gets Called
- Replies: 0
- Views: 10243
Timer Never Gets Called
In a Raspberry Pico a timer with a period of 300000 (5 minutes) gets called reliably while another timer with a period of 900000 (15 minutes) never gets called. Changing the period of task3 to 300000 gets it working again. task1 = Timer() task2 = Timer() task3 = Timer() task1.init(period=60000, mode...
- Thu Apr 21, 2022 12:56 pm
- Forum: General Discussion and Questions
- Topic: Can't Print Inside Function Definition
- Replies: 6
- Views: 1597
Re: Can't Print Inside Function Definition
It seems that a function can be called with or without parentheses. If called without parentheses it doesn't print as per my example but will print if called with parentheses.
- Wed Apr 20, 2022 8:35 am
- Forum: General Discussion and Questions
- Topic: Can't Print Inside Function Definition
- Replies: 6
- Views: 1597
Re: Can't Print Inside Function Definition
Here is my example. It prints nothing.
Code: Select all
def printer():
print("test")
printer
- Tue Apr 19, 2022 11:23 am
- Forum: General Discussion and Questions
- Topic: Can't Print Inside Function Definition
- Replies: 6
- Views: 1597
Can't Print Inside Function Definition
I'm developing some simple things for the Raspberry Pico using Thonny. I can print outside of a function definition but not inside. How have I got this mixed up.