mirror of
https://github.com/sinseman44/PyCNC.git
synced 2026-10-15 07:56:59 +00:00
add dynamic configuration and begin configuration of double H bridge driver l293d
This commit is contained in:
1 parent
7bacbedce0
commit
00d5f6516f
4 files changed
+105
-54
No files matched your search
+10
-4
@@ -19,17 +19,23 @@ def spindle_control(percent):
|
||||
""" Spindle control implementation 0..100.
|
||||
:param percent: Spindle speed in percent.
|
||||
"""
|
||||
logging.info("spindle control: {}%".format(percent))
|
||||
if ENABLE_SPINDLE:
|
||||
logging.info("spindle control: {}%".format(percent))
|
||||
else:
|
||||
logging.info("spindle control disabled")
|
||||
|
||||
|
||||
def fan_control(on_off):
|
||||
"""Cooling fan control.
|
||||
:param on_off: boolean value if fan is enabled.
|
||||
"""
|
||||
if on_off:
|
||||
logging.info("Fan is on")
|
||||
if ENABLE_FAN:
|
||||
if on_off:
|
||||
logging.info("Fan is on")
|
||||
else:
|
||||
logging.info("Fan is off")
|
||||
else:
|
||||
logging.info("Fan is off")
|
||||
logging.info("fan control disabled")
|
||||
|
||||
|
||||
# noinspection PyUnusedLocal
|
||||
|
||||
Reference in new issue
Block a user