Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
timer strange ?
#1
hello,
i,am busy to adjust the code from a libary (micropython-stepper 1.0.3),
to do the things witch i want it to do (acc & decc).
no i see that the configure the timer on a different way then what i learn.
i learn something like:
timer_0.init(mode=, period=, callback=)
where you have by mode the options:
periodic
one_shot

now i see in the libary that te used a timer configuration:
timer.init(freq = self.steps_per_sec,callback = self._timer_callback)
do someone now why the 2e way is also working ?
tnx.
Reply


Messages In This Thread
timer strange ? - by trix - Nov-20-2023, 07:27 PM
RE: timer strange ? - by buran - Nov-20-2023, 08:38 PM
RE: timer strange ? - by deanhystad - Nov-20-2023, 08:40 PM
RE: timer strange ? - by DeaD_EyE - Nov-20-2023, 09:24 PM
RE: timer strange ? - by trix - Nov-21-2023, 06:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  email timer/rss feed timer ndiniz 1 2,151 Feb-02-2021, 07:18 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020