File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ def bounce(self):
31
31
def switch (self ):
32
32
return int (self ._settings .get (["switch" ]))
33
33
34
+ @property
35
+ def mode (self ):
36
+ return int (self ._settings .get (["mode" ]))
37
+
34
38
@property
35
39
def after_pause_gcode (self ):
36
40
return str (self ._settings .get (["after_pause_gcode" ])).splitlines ()
@@ -52,6 +56,7 @@ def get_settings_defaults(self):
52
56
pin = - 1 , # Default is no pin
53
57
bounce = 250 , # Debounce 250ms
54
58
switch = 0 , # Normally Open
59
+ mode = 0 # Board Mode
55
60
after_pause_gcode = '' ,
56
61
after_resume_gcode = '' ,
57
62
)
Original file line number Diff line number Diff line change @@ -24,6 +24,15 @@ Define the pin used by your sensor and the debounce timing for false positive pr
24
24
</select >
25
25
</div >
26
26
</div >
27
+ <div class =" control-group" >
28
+ <label class =" control-label" >{{ _('Board Pin Mode:') }}</label >
29
+ <div class =" controls" data-toggle =" tooltip" title =" {{ _('RPi pins numbered in Board mode or BCM mode?') }}" >
30
+ <select class =" select-mini" data-bind =" value: settings.plugins.filamentreload.mode" >
31
+ <option value =0 >{{ _('Board Mode') }}</option >
32
+ <option value =1 >{{ _('BCM Mode') }}</option >
33
+ </select >
34
+ </div >
35
+ </div >
27
36
<div class =" control-group" >
28
37
<label class =" control-label" >{{ _('After pause GCODE:') }}</label >
29
38
<div class =" controls" >
You can’t perform that action at this time.
0 commit comments