-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
1753 lines (1710 loc) · 94.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en">
<head>
<title>µCNC config builder</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" href="https://raw.githubusercontent.com/Paciente8159/uCNC/master/docs/logo.png" sizes="32x32">
<!-- Bootstrap CSS v5.2.1 -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.2/css/bootstrap.min.css"
integrity="sha512-CpIKUSyh9QX2+zSdfGP+eWLx23C8Dj9/XmHjZY2uDtfkdLGo0uY12jgcnkX9vXOgYajEKb/jiw67EYm+kBf+6g=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.8.3/angular-csp.min.css"
integrity="sha512-nptw3cPhphu13Dy21CXMS1ceuSy2yxpKswAfZ7bAAE2Lvh8rHXhQFOjU+sSnw4B+mEoQmKFLKOj8lmXKVk3gow=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"
integrity="sha512-XMVd28F1oH/O71fzwBnV7HucLxVwtxf26XV8P4wPk26EDxuGZ91N8bsOttmnomcCD3CS5ZMRL50H0GgOHvegtg=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="stylesheet" href="style.css?version=202408285117">
</head>
<body id="uCNCapp" ng-app="uCNCapp" ng-controller="uCNCcontroller">
<header>
<!-- place navbar here -->
<div class="center-content">
<img class="card-img-top logo-sm" src="https://raw.githubusercontent.com/Paciente8159/uCNC/master/docs/logo.png"
alt="µCNC logo">
<h1>µCNC config generator</h1>
<!-- <div class="alert alert-danger left-align alert-dismissible fade show" role="alert">
<h2 style="color: var(--bs-alert-color)">NOTICE</h2>
<p>Web Builder might not always generate 100% correct config files.</p>
<p>Sometimes the generated config files, cause compilation errors and sometimes the code just compiles
fine but does not work due to a bad configuration.</p>
<p><strong>ALWAYS CHECK THE GENERATED FILES:</strong></p>
<ul>
<li>a reset file is generated to undefine all default configs</li>
<li>make sure you have all your necessary pins defined</li>
<li>you have downloaded the correct modules version files for the version you are using</li>
<li>clean/undefine unecessary or unused pins to prevent unwanted issues</li>
<li>not all configuration might be available in the web builder. For custom boards and MCU
additional configurations might be needed. You can add them in the Custom
configurations tab</li>
</ul>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div> -->
<div class="alert alert-warning left-align alert-dismissible fade show" role="alert">
<h2 style="color: var(--bs-alert-color)">WARNING</h2>
<p>RP2350 core is still in early development stage and with limited functionalities.</p>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<div class="info alert alert-primary left-align alert-dismissible fade show" role="alert">
<h2 style="color:blue">Issues</h2>
<p>If you encounter any issue please consider <a
href="https://github.com/Paciente8159/uCNC-config-builder/issues/new" target="_blank">submiting an issue in
the Github project page</a>, with an
attached zip with all the override files and the json config file.</p>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
</div>
</header>
<main>
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="configbasic-tab" data-bs-toggle="tab" data-bs-target="#configbasic"
type="button" role="tab" aria-controls="configbasic" aria-selected="true">Basic</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="configboardmap-tab" data-bs-toggle="tab" data-bs-target="#configboardmap"
type="button" role="tab" aria-controls="configboardmap" aria-selected="false">Board</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="confighal-tab" data-bs-toggle="tab" data-bs-target="#confighal" type="button"
role="tab" aria-controls="confighal" aria-selected="false">HAL</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="configmodules-tab" data-bs-toggle="tab" data-bs-target="#configmodules"
type="button" role="tab" aria-controls="configmodules" aria-selected="false">Additional
Modules</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="customconfigs-tab" data-bs-toggle="tab" data-bs-target="#customconfigs"
type="button" role="tab" aria-controls="customconfigs" aria-selected="false">Custom
configurations</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="configfiles-tab" data-bs-toggle="tab" data-bs-target="#configfiles" type="button"
role="tab" aria-controls="configfiles" aria-selected="false">Config files</button>
</li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="configbasic" role="tabpanel" aria-labelledby="configbasic-tab">
<!-- <div ng-include="'basic.html'" onload="boardChanged()"></div> -->
<div class="mb-3">
<p>Hi there,</p>
<p>Welcome to µCNC basic configuration generator.</p>
</div>
<div class="mb-3 load-config">
<p>If you have a previous stored build configuration file (json) you can load it.</p>
<input class="form-control form-control" id="load_settings" type="file" accept=".json,.txt">
</div>
<div ng-include="'pre-configs/configs.html'"></div>
<div class="mb-3">
<label for="" class="form-label">What version will you be using?</label>
<select class="form-select form-select-md" name="VERSION" id="VERSION" ng-model="VERSION"
ng-options="x.tag as x.id for x in VERSIONS" config-file="none" ng-init="VERSION=99999"
ng-change="versionChanged()">
</select>
</div>
<fieldset>
<legend>Basic settings</legend>
<div class="mb-3">
<label for="" class="form-label">What MCU family will you be using?</label>
<select class="form-select form-select-md" name="MCU" id="MCU" ng-model="MCU" ng-change="mcuChanged()"
ng-options="y.id as y.name for y in MCUS" config-file="boardmap">
</select>
</div>
<div class="mb-3">
<label for="" class="form-label">What type of kinematic does your machine have?</label>
<select class="form-select form-select-md" name="KINEMATIC" id="KINEMATIC" ng-model="KINEMATIC"
ng-options="y.id as y.name for y in KINEMATICS | filter: smallerThenFilter('version', VERSION)"
config-file="boardmap"></select>
</select>
</div>
<div class="form-check form-switch" ng-if="KINEMATIC=='KINEMATIC_SCARA'">
<input class="form-check-input" type="checkbox" id="MP_SCARA" ng-model="DYNAMIC['MP_SCARA']"
model-scope-name="DYNAMIC.MP_SCARA" config-file="boardmap">
<label class="form-check-label" for="MP_SCARA">Is MP Scara. In MP SCARA both shoulder and elbow
motors are fixed to the base.</label>
</div>
<div class="mb-3">
<label for="" class="form-label">How many axis does your machine have?</label>
<select class="form-select form-select-md" name="AXIS_COUNT" id="AXIS_COUNT" ng-model="AXIS_COUNT"
ng-options="x as x for x in AXIS" var-type="int" config-file="boardmap">
</select>
</div>
<div class="mb-3">
<label for="" class="form-label">How many tools do you have on your machine</label>
<select class="form-select form-select-md" name="TOOL_COUNT" id="TOOL_COUNT" ng-model="TOOL_COUNT"
ng-options="x as x for x in TOOLS" var-type="int" config-file="boardmap">
</select>
</div>
<div class="mb-3">
<label for="" class="form-label">What is your COM port baudrate</label>
<select class="form-select form-select-md" name="BAUDRATE" id="BAUDRATE" ng-model="BAUDRATE"
ng-options="x as x for x in BAUDRATES" var-type="int" config-file="boardmap">
</select>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="ENABLE_COOLANT" ng-model="ENABLE_COOLANT"
config-file="hal">
<label class="form-check-label" for="ENABLE_COOLANT">Enable
coolant</label>
</div>
</fieldset>
<fieldset>
<legend>Advanced settings</legend>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="ENABLE_WIFI" ng-model="DYNAMIC['ENABLE_WIFI']"
model-scope-name="DYNAMIC.ENABLE_WIFI" config-file="boardmap">
<label class="form-check-label" for="ENABLE_WIFI">Enable Wifi (board must support it)</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="ENABLE_BLUETOOTH" ng-model="DYNAMIC['ENABLE_BLUETOOTH']"
model-scope-name="DYNAMIC.ENABLE_BLUETOOTH" config-file="boardmap">
<label class="form-check-label" for="ENABLE_BLUETOOTH">Enable Bluetooth (board must support
it)</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="ENABLE_STEPPERS_DISABLE_TIMEOUT"
ng-model="DYNAMIC['ENABLE_STEPPERS_DISABLE_TIMEOUT']"
model-scope-name="DYNAMIC.ENABLE_STEPPERS_DISABLE_TIMEOUT" config-file="boardmap">
<label class="form-check-label" for="ENABLE_STEPPERS_DISABLE_TIMEOUT">Enable stepper idle timeout
($1)</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="ENABLE_SKEW_COMPENSATION"
ng-model="DYNAMIC['ENABLE_SKEW_COMPENSATION']" model-scope-name="DYNAMIC.ENABLE_SKEW_COMPENSATION"
config-file="hal">
<label class="form-check-label" for="ENABLE_SKEW_COMPENSATION">Enable X-Y-Z axis skew
compensation</label>
</div>
<div ng-show="DYNAMIC['ENABLE_SKEW_COMPENSATION']">
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="SKEW_COMPENSATION_XY_ONLY"
value="SKEW_COMPENSATION_XY_ONLY" ng-model="DYNAMIC['SKEW_COMPENSATION_XY_ONLY']"
model-scope-name="DYNAMIC.SKEW_COMPENSATION_XY_ONLY" config-file="hal">
<label class="form-check-label" for="SKEW_COMPENSATION_XY_ONLY">Enable skew compensation for
X-Y axis only</label>
</div>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="ENABLE_LINACT_PLANNER"
ng-model="DYNAMIC['ENABLE_LINACT_PLANNER']" model-scope-name="DYNAMIC.ENABLE_LINACT_PLANNER"
config-file="hal">
<label class="form-check-label" for="ENABLE_LINACT_PLANNER">Enable linear actuator planner (for
machines with heavy mobile parts)</label>
</div>
<div ng-show="DYNAMIC['ENABLE_LINACT_PLANNER']">
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="ENABLE_LINACT_COLD_START"
value="ENABLE_LINACT_COLD_START" ng-model="DYNAMIC['ENABLE_LINACT_COLD_START']"
model-scope-name="DYNAMIC.ENABLE_LINACT_COLD_START" config-file="hal">
<label class="form-check-label" for="ENABLE_LINACT_COLD_START">Linear actuator cold start
(stop on every direction change)</label>
</div>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="ENABLE_BACKLASH_COMPENSATION"
ng-model="DYNAMIC['ENABLE_BACKLASH_COMPENSATION']" model-scope-name="DYNAMIC.ENABLE_BACKLASH_COMPENSATION"
config-file="hal">
<label class="form-check-label" for="ENABLE_BACKLASH_COMPENSATION">Enable backlash
compensation</label>
</div>
<div class="form-check form-switch" ng-if="VERSION<10780">
<input class="form-check-input" type="checkbox" id="ENABLE_S_CURVE_ACCELERATION"
ng-model="DYNAMIC['ENABLE_S_CURVE_ACCELERATION']" model-scope-name="DYNAMIC.ENABLE_S_CURVE_ACCELERATION"
config-file="hal">
<label class="form-check-label" for="ENABLE_S_CURVE_ACCELERATION">Enable S-Curve
acceleration</label>
</div>
<div class="form-check form-switch" ng-if="VERSION>10779">
<label for="S_CURVE_ACCELERATION_LEVEL" class="form-label">Curve
acceleration type</label>
<select class="form-select form-select-md" name="S_CURVE_ACCELERATION_LEVEL" id="S_CURVE_ACCELERATION_LEVEL"
ng-model="DYNAMIC['S_CURVE_ACCELERATION_LEVEL']" model-scope-name="DYNAMIC.S_CURVE_ACCELERATION_LEVEL"
ng-options="x.id as x.name for x in ACCELERATIONS" var-type="int" config-file="hal"
ng-init="DYNAMIC['S_CURVE_ACCELERATION_LEVEL']=0"></select>
</select>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="BRESENHAM_16BIT" ng-model="DYNAMIC['BRESENHAM_16BIT']"
model-scope-name="DYNAMIC.BRESENHAM_16BIT" config-file="hal">
<label class="form-check-label" for="BRESENHAM_16BIT">Use 16-bit Bresenham step generation (for
machines that run very short segments like deltas or laser engravers)</label>
</div>
<div class="form-check form-switch" ng-if="VERSION<11100">
<input class="form-check-input" type="checkbox" id="ENABLE_EXTRA_SYSTEM_CMDS"
ng-model="DYNAMIC['ENABLE_EXTRA_SYSTEM_CMDS']" model-scope-name="DYNAMIC.ENABLE_EXTRA_SYSTEM_CMDS"
config-file="hal">
<label class="form-check-label" for="ENABLE_EXTRA_SYSTEM_CMDS">Enable extra settings store
commands ($SS, $SL, $SR) and pin state print commands ($P)</label>
</div>
<div class="form-check form-switch" ng-if="VERSION>11099">
<input class="form-check-input" type="checkbox" id="ENABLE_PIN_DEBUG_EXTRA_CMD"
ng-model="DYNAMIC['ENABLE_PIN_DEBUG_EXTRA_CMD']" model-scope-name="DYNAMIC.ENABLE_PIN_DEBUG_EXTRA_CMD"
config-file="hal">
<label class="form-check-label" for="ENABLE_PIN_DEBUG_EXTRA_CMD">Enable extra pin state print commands
($P)</label>
</div>
<div class="form-check form-switch" ng-if="VERSION>11099">
<input class="form-check-input" type="checkbox" id="ENABLE_EXTRA_SETTINGS_CMDS"
ng-model="DYNAMIC['ENABLE_EXTRA_SETTINGS_CMDS']" model-scope-name="DYNAMIC.ENABLE_EXTRA_SETTINGS_CMDS"
config-file="hal">
<label class="form-check-label" for="ENABLE_EXTRA_SETTINGS_CMDS">Enable extra settings store
commands ($SS, $SL, $SR)</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="RAM_ONLY_SETTINGS"
ng-model="DYNAMIC['RAM_ONLY_SETTINGS']" model-scope-name="DYNAMIC.RAM_ONLY_SETTINGS" config-file="hal">
<label class="form-check-label" for="RAM_ONLY_SETTINGS">Disable NVM (non volatile memory) storing</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="STATUS_AUTOMATIC_REPORT_INTERVAL_ENABLE"
ng-model="DYNAMIC['STATUS_AUTOMATIC_REPORT_INTERVAL_ENABLE']"
model-scope-name="DYNAMIC.STATUS_AUTOMATIC_REPORT_INTERVAL_ENABLE" config-file="hal">
<label class="form-check-label" for="STATUS_AUTOMATIC_REPORT_INTERVAL_ENABLE">Enable automatic
status report</label>
<div ng-if="DYNAMIC['STATUS_AUTOMATIC_REPORT_INTERVAL_ENABLE']">
<label for="STATUS_AUTOMATIC_REPORT_INTERVAL" class="form-label">Frequency: <span
ng-bind="DYNAMIC['STATUS_AUTOMATIC_REPORT_INTERVAL']"></span> ms</label>
<input type="range" class="form-range" min="100" max="1000" id="STATUS_AUTOMATIC_REPORT_INTERVAL"
ng-model="DYNAMIC['STATUS_AUTOMATIC_REPORT_INTERVAL']"
model-scope-name="DYNAMIC.STATUS_AUTOMATIC_REPORT_INTERVAL" config-file="hal">
</div>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="ENABLE_G39_H_MAPPING"
ng-model="DYNAMIC['ENABLE_G39_H_MAPPING']" model-scope-name="DYNAMIC.ENABLE_G39_H_MAPPING"
config-file="hal">
<label class="form-check-label" for="ENABLE_G39_H_MAPPING">Enable height map generation</label>
<div ng-if="DYNAMIC['ENABLE_G39_H_MAPPING']">
<label for="H_MAPING_GRID_FACTOR" class="form-label">Grid factor (number of points is [grid
factor]^ 2): <span ng-bind="DYNAMIC['H_MAPING_GRID_FACTOR']"></span></label>
<input type="range" class="form-range" min="2" max="6" id="H_MAPING_GRID_FACTOR"
ng-model="DYNAMIC['H_MAPING_GRID_FACTOR']" model-scope-name="DYNAMIC.H_MAPING_GRID_FACTOR"
config-file="hal">
</div>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="ENABLE_CANNED_CYCLES"
ng-model="DYNAMIC['ENABLE_CANNED_CYCLES']" model-scope-name="DYNAMIC.ENABLE_CANNED_CYCLES"
config-file="hal">
<label class="form-check-label" for="ENABLE_CANNED_CYCLES">Enable canned cycles subset</label>
</div>
<div class="form-check form-switch" ng-if="VERSION>10901">
<input class="form-check-input" type="checkbox" id="ENABLE_RS274NGC_EXPRESSIONS"
ng-model="DYNAMIC['ENABLE_RS274NGC_EXPRESSIONS']" model-scope-name="DYNAMIC.ENABLE_RS274NGC_EXPRESSIONS"
config-file="hal">
<label class="form-check-label" for="ENABLE_RS274NGC_EXPRESSIONS">Enable canned expression parsing and
numbered parameters</label>
</div>
</fieldset>
</div>
<div class="tab-pane" id="configboardmap" role="tabpanel" aria-labelledby="configboardmap-tab">
<!-- <div ng-include="'boardmap.html'"></div> -->
<fieldset>
<legend>Basic board settings</legend>
<div class="mb-3">
<label for="" class="form-label">What board will you be using?</label>
<select class="form-select form-select-md" name="BOARD" id="BOARD" ng-model="BOARD"
ng-change="boardChanged()" ng-options="y.id as y.name for y in BOARDS | filter: {'mcu': MCU}"
config-file="none"></select>
<!-- <option value="{{x.id}}" ng-repeat="x in BOARDS | filter: {'mcu': MCU}">{{x.name}}</option> -->
</select>
<div class="info alert alert-info left-align" role="alert"
ng-if="(BOARD=='BOARD_CUSTOM'||BOARD=='boardmap_overrides.h')">
<h2 style="color: var(--bs-alert-color)">Advanced configurations</h2>
<p>Custom boards might require aditional settings that may not be available in this
tool.<br><strong>Check the Custom configurations tab</strong><br>Also might require either a different
base board selection on the ini file
(PlatformIO) or a board type (Arduino IDE).<br>Please refer to the architecture
documentation or submit a question on Github
about custom boards.</p>
</div>
</div>
</fieldset>
<fieldset>
<legend>Special purpose timers and features</legend>
<div class="mb-3">
<label for="" class="form-label">The board name printed with $I command? <span
ng-bind="DYNAMIC['BOARD_NAME']"></span></label>
<input type="text" class="form-control" name="BOARD_NAME" id="BOARD_NAME" ng-model="DYNAMIC['BOARD_NAME']"
model-scope-name="DYNAMIC.BOARD_NAME" aria-describedby="helpId" placeholder="" config-file="boardmap">
<small id="helpId" class="form-text text-muted">Name must be between quotation marks
(string)</small>
</div>
<div class="mb-3" ng-if='MCU=="MCU_AVR" && (BOARD=="BOARD_CUSTOM"||BOARD=="boardmap_overrides.h")'>
<label for="" class="form-label">In which port are PCINT pins 0 to 7?</label>
<select class='form-select form-select-sm' name='PCINT0_PORT' id='PCINT0_PORT'
ng-model="DYNAMIC['PCINT0_PORT']" model-scope-name="DYNAMIC.PCINT0_PORT"
ng-options="y.port as y.port for y in PORTS | filter: {'mcu': MCU}" config-file="boardmap">
</select>
<label for="" class="form-label">In which port are PCINT pins 8 to 15?</label>
<select class='form-select form-select-sm' name='PCINT1_PORT' id='PCINT1_PORT'
ng-model="DYNAMIC['PCINT1_PORT']" model-scope-name="DYNAMIC.PCINT1_PORT"
ng-options="y.port as y.port for y in PORTS | filter: {'mcu': MCU}" config-file="boardmap">
</select>
<label for="" class="form-label">In which port are PCINT pins 16 to 23?</label>
<select class='form-select form-select-sm' name='PCINT2_PORT' id='PCINT2_PORT'
ng-model="DYNAMIC['PCINT2_PORT']" model-scope-name="DYNAMIC.PCINT2_PORT"
ng-options="y.port as y.port for y in PORTS | filter: {'mcu': MCU}" config-file="boardmap">
</select>
</div>
<div class="mb-3">
<label for="UART_PORT" class="form-label">Which hardware port will be UART_PORT?</label>
<select class='form-select form-select-sm' name='UART_PORT' id='UART_PORT'
ng-model="DYNAMIC['PORTS']['UART_PORT']" model-scope-name="DYNAMIC.PORTS.UART_PORT"
ng-options="y.port as y.port for y in UCNCUARTS | filter: {'mcu': MCU}" var-type="int-nullable"
config-file="boardmap">
<option value=""></option>
</select>
<label for="UART2_PORT" class="form-label">Which hardware port will be UART2_PORT?</label>
<select class='form-select form-select-sm' name='UART2_PORT' id='UART2_PORT'
ng-model="DYNAMIC['PORTS']['UART2_PORT']" model-scope-name="DYNAMIC.PORTS.UART2_PORT"
ng-options="y.port as y.port for y in UCNCUARTS | filter: {'mcu': MCU}" var-type="int-nullable"
config-file="boardmap">
<option value=""></option>
</select>
<label for="SPI_PORT" class="form-label">Which hardware port will be SPI_PORT?</label>
<select class='form-select form-select-sm' name='SPI_PORT' id='SPI_PORT'
ng-model="DYNAMIC['PORTS']['SPI_PORT']" model-scope-name="DYNAMIC.PORTS.SPI_PORT"
ng-options="y.port as y.port for y in UCNCSPI | filter: {'mcu': MCU}" var-type="int-nullable"
config-file="boardmap">
<option value=""></option>
</select>
<label for="SPI2_PORT" class="form-label">Which hardware port will be SPI2_PORT?</label>
<select class='form-select form-select-sm' name='SPI2_PORT' id='SPI2_PORT'
ng-model="DYNAMIC['PORTS']['SPI2_PORT']" model-scope-name="DYNAMIC.PORTS.SPI2_PORT"
ng-options="y.port as y.port for y in UCNCSPI | filter: {'mcu': MCU}" var-type="int-nullable"
config-file="boardmap">
<option value=""></option>
</select>
<label for="I2C_PORT" class="form-label">Which hardware port will be I2C_PORT?</label>
<select class='form-select form-select-sm' name='I2C_PORT' id='I2C_PORT'
ng-model="DYNAMIC['PORTS']['I2C_PORT']" model-scope-name="DYNAMIC.PORTS.I2C_PORT"
ng-options="y.port as y.port for y in UCNCI2C | filter: {'mcu': MCU}" var-type="int-nullable"
config-file="boardmap">
<option value=""></option>
</select>
</div>
<div ng-repeat="x in UCNCTIMERS | filter: {'mcu': MCU}">
<label for="{{x.timer}}_TIMER" class="form-label">Which Timer will be used as
{{x.timer}}_TIMER?</label>
<select class='form-select form-select-sm' name='{{x.timer}}_TIMER' id='{{x.timer}}_TIMER'
ng-model="DYNAMIC['TIMERS'][x.timer]" model-scope-name="DYNAMIC.TIMERS.{{x.timer}}"
ng-options="y.timer as y.timer for y in TIMERS | filter: {'mcu': MCU}" var-type="int-nullable"
config-file="boardmap">
<option value=""></option>
</select>
</div>
</fieldset>
<fieldset>
<legend>Board pin mapping</legend>
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="pinsTab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="stepperpins-tab" data-bs-toggle="tab" data-bs-target="#stepperpins"
type="button" role="tab" aria-controls="stepperpins" aria-selected="true">Stepper pins</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="pwmsandservos-tab" data-bs-toggle="tab" data-bs-target="#pwmsandservos"
type="button" role="tab" aria-controls="pwmsandservos" aria-selected="false">PWMs and Servos</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="genericoutputs-tab" data-bs-toggle="tab" data-bs-target="#genericoutputs"
type="button" role="tab" aria-controls="genericoutputs" aria-selected="false">Generic Outputs</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="controlslimitsandprobe-tab" data-bs-toggle="tab"
data-bs-target="#controlslimitsandprobe" type="button" role="tab" aria-controls="controlslimitsandprobe"
aria-selected="false">Controls, Limits and probe</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="analoginputs-tab" data-bs-toggle="tab" data-bs-target="#analoginputs"
type="button" role="tab" aria-controls="analoginputs" aria-selected="false">Analog inputs</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="genericinputs-tab" data-bs-toggle="tab" data-bs-target="#genericinputs"
type="button" role="tab" aria-controls="genericinputs" aria-selected="false">Generic Inputs</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="communicationports-tab" data-bs-toggle="tab"
data-bs-target="#communicationports" type="button" role="tab" aria-controls="communicationports"
aria-selected="false">Communication ports</button>
</li>
</ul>
<div class="tab-content" id="pinsTabContent">
<div class="tab-pane active table-container" id="stepperpins" role="tabpanel"
aria-labelledby="stepperpins-tab">
<table class="table">
<thead>
<tr>
<th scope="col">µCNC pin</th>
<th scope="col">Pin number</th>
<th scope="col">Pin port</th>
<th scope="col">IO OFFSET(74HC595)</th>
</tr>
</thead>
<tr ng-repeat="x in UCNCPINS | orTypeFilter: ['stepper']">
<th scope='row'>{{x.pin}}</th>
<td><select class='form-select form-select-sm' name='{{x.pin}}_BIT' id='{{x.pin}}_BIT'
ng-model="DYNAMIC['PINS'][x.pin]['BIT']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.BIT"
ng-options="y.pin as y.pin for y in PINS | filter: {'mcu': MCU}" var-type="int-nullable"
config-file="boardmap" ng-change="definedPins()">
<option value=""></option>
</select></td>
<td><select class='form-select form-select-sm' name='{{x.pin}}_PORT' id='{{x.pin}}_PORT'
ng-model="DYNAMIC['PINS'][x.pin]['PORT']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.PORT"
ng-options="y.port as y.port for y in PORTS | filter: {'mcu': MCU}" config-file="boardmap"
ng-change="definedPins()">
<option value=""></option>
</select></td>
<td>
<div
ng-if='x.type.includes("special_output") || x.type=="pwm" || x.type=="servo" || x.type.includes("generic_output")'>
<select class='form-select form-select-sm' name='{{x.pin}}_IO_OFFSET' id='{{x.pin}}_IO_OFFSET'
ng-model="DYNAMIC['PINS'][x.pin]['IO_OFFSET']"
model-scope-name="DYNAMIC.PINS.{{x.pin}}.IO_OFFSET" var-type="int-nullable"
ng-options="y.offset as y.offset for y in IO_OFFSETS" config-file="boardmap"
ng-change="definedPins()">
<option value=""></option>
</select>
</div>
</td>
</tr>
<tbody>
</tbody>
</table>
</div>
<div class="tab-pane table-container" id="pwmsandservos" role="tabpanel"
aria-labelledby="pwmsandservos-tab">
<table class="table">
<thead>
<tr>
<th scope="col">µCNC pin</th>
<th scope="col">Pin number</th>
<th scope="col">Pin port</th>
<th scope="col">CHANNEL</th>
<th scope="col">TIMER</th>
<th scope="col">MUX</th>
<th scope="col">IO OFFSET(74HC595)</th>
</tr>
</thead>
<tr ng-repeat="x in UCNCPINS | orTypeFilter: ['pwm','servo']">
<th scope='row'>{{x.pin}}</th>
<td><select class='form-select form-select-sm' name='{{x.pin}}_BIT' id='{{x.pin}}_BIT'
ng-model="DYNAMIC['PINS'][x.pin]['BIT']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.BIT"
ng-options="y.pin as y.pin for y in PINS | filter: {'mcu': MCU}" var-type="int-nullable"
config-file="boardmap" ng-change="definedPins()">
<option value=""></option>
</select></td>
<td><select class='form-select form-select-sm' name='{{x.pin}}_PORT' id='{{x.pin}}_PORT'
ng-model="DYNAMIC['PINS'][x.pin]['PORT']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.PORT"
ng-options="y.port as y.port for y in PORTS | filter: {'mcu': MCU}" config-file="boardmap"
ng-change="definedPins()">
<option value=""></option>
</select></td>
<td>
<div ng-if='x.type=="pwm"'>
<select class='form-select form-select-sm' name='{{x.pin}}_CHANNEL' id='{{x.pin}}_CHANNEL'
ng-model="DYNAMIC['PINS'][x.pin]['CHANNEL']"
ng-options="y.channel as y.channel for y in CHANNELS | filter: {'mcu': MCU}"
model-scope-name="DYNAMIC.PINS.{{x.pin}}.CHANNEL" config-file="boardmap" ng-if='MCU=="MCU_AVR"'>
<option value=""></option>
</select>
<select class='form-select form-select-sm' name='{{x.pin}}_CHANNEL' id='{{x.pin}}_CHANNEL'
ng-model="DYNAMIC['PINS'][x.pin]['CHANNEL']"
ng-options="y.channel as y.channel for y in CHANNELS | filter: {'mcu': MCU}"
var-type="int-nullable" model-scope-name="DYNAMIC.PINS.{{x.pin}}.CHANNEL" config-file="boardmap"
ng-if='MCU!="MCU_AVR"'>
<option value=""></option>
</select>
</div>
</td>
<td>
<div ng-if='x.type=="pwm"'><select class='form-select form-select-sm' name='{{x.pin}}_TIMER'
id='{{x.pin}}_TIMER' ng-model="DYNAMIC['PINS'][x.pin]['TIMER']"
model-scope-name="DYNAMIC.PINS.{{x.pin}}.TIMER"
ng-options="y.timer as y.timer for y in TIMERS | filter: {'mcu': MCU}" var-type="int-nullable"
config-file="boardmap">
<option value=""></option>
</select></div>
</td>
<td>
<div ng-if='x.type=="pwm"'><select class='form-select form-select-sm' name='{{x.pin}}_MUX'
id='{{x.pin}}_MUX' ng-model="DYNAMIC['PINS'][x.pin]['MUX']"
model-scope-name="DYNAMIC.PINS.{{x.pin}}.MUX"
ng-options="y.mux as y.mux for y in MUXS | filter: {'mcu': MCU}" config-file="boardmap">
<option value=""></option>
</select></div>
</td>
<td>
<div
ng-if='x.type.includes("special_output") || x.type=="pwm" || x.type=="servo" || x.type.includes("generic_output")'>
<select class='form-select form-select-sm' name='{{x.pin}}_IO_OFFSET' id='{{x.pin}}_IO_OFFSET'
ng-model="DYNAMIC['PINS'][x.pin]['IO_OFFSET']"
model-scope-name="DYNAMIC.PINS.{{x.pin}}.IO_OFFSET" var-type="int-nullable"
ng-options="y.offset as y.offset for y in IO_OFFSETS" config-file="boardmap"
ng-change="definedPins()">
<option value=""></option>
</select>
</div>
</td>
</tr>
<tbody>
</tbody>
</table>
</div>
<div class="tab-pane table-container" id="genericoutputs" role="tabpanel"
aria-labelledby="genericoutputs-tab">
<table class="table">
<thead>
<tr>
<th scope="col">µCNC pin</th>
<th scope="col">Pin number</th>
<th scope="col">Pin port</th>
<th scope="col">IO OFFSET(74HC595)</th>
</tr>
</thead>
<tr ng-repeat="x in UCNCPINS | orTypeFilter: ['dout']">
<th scope='row'>{{x.pin}}</th>
<td><select class='form-select form-select-sm' name='{{x.pin}}_BIT' id='{{x.pin}}_BIT'
ng-model="DYNAMIC['PINS'][x.pin]['BIT']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.BIT"
ng-options="y.pin as y.pin for y in PINS | filter: {'mcu': MCU}" var-type="int-nullable"
config-file="boardmap" ng-change="definedPins()">
<option value=""></option>
</select></td>
<td><select class='form-select form-select-sm' name='{{x.pin}}_PORT' id='{{x.pin}}_PORT'
ng-model="DYNAMIC['PINS'][x.pin]['PORT']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.PORT"
ng-options="y.port as y.port for y in PORTS | filter: {'mcu': MCU}" config-file="boardmap"
ng-change="definedPins()">
<option value=""></option>
</select></td>
<td>
<div
ng-if='x.type.includes("special_output") || x.type=="pwm" || x.type=="servo" || x.type.includes("generic_output")'>
<select class='form-select form-select-sm' name='{{x.pin}}_IO_OFFSET' id='{{x.pin}}_IO_OFFSET'
ng-model="DYNAMIC['PINS'][x.pin]['IO_OFFSET']"
model-scope-name="DYNAMIC.PINS.{{x.pin}}.IO_OFFSET" var-type="int-nullable"
ng-options="y.offset as y.offset for y in IO_OFFSETS" config-file="boardmap"
ng-change="definedPins()">
<option value=""></option>
</select>
</div>
</td>
</tr>
<tbody>
</tbody>
</table>
</div>
<div class="tab-pane table-container" id="controlslimitsandprobe" role="tabpanel"
aria-labelledby="controlslimitsandprobe-tab">
<table class="table">
<thead>
<tr>
<th scope="col">µCNC pin</th>
<th scope="col">Pin number</th>
<th scope="col">Pin port</th>
<th scope="col">Pullup</th>
<th scope="col">ISR</th>
</tr>
</thead>
<tr ng-repeat="x in UCNCPINS | orTypeFilter: ['control','limit','probe']">
<th scope='row'>{{x.pin}}</th>
<td><select class='form-select form-select-sm' name='{{x.pin}}_BIT' id='{{x.pin}}_BIT'
ng-model="DYNAMIC['PINS'][x.pin]['BIT']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.BIT"
ng-options="y.pin as y.pin for y in PINS | filter: {'mcu': MCU}" var-type="int-nullable"
config-file="boardmap" ng-change="definedPins()">
<option value=""></option>
</select></td>
<td><select class='form-select form-select-sm' name='{{x.pin}}_PORT' id='{{x.pin}}_PORT'
ng-model="DYNAMIC['PINS'][x.pin]['PORT']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.PORT"
ng-options="y.port as y.port for y in PORTS | filter: {'mcu': MCU}" config-file="boardmap"
ng-change="definedPins()">
<option value=""></option>
</select></td>
<td>
<div class="form-check form-switch" ng-if='x.type.includes("pullup")'>
<input class="form-check-input" type="checkbox" name='{{x.pin}}_PULLUP' id='{{x.pin}}_PULLUP'
ng-model="DYNAMIC['PINS'][x.pin]['PULLUP']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.PULLUP"
config-file="boardmap">
</div>
</td>
<td>
<div class="form-check form-switch" ng-if='x.type.includes("interruptable_input")'>
<input class="form-check-input" type="checkbox" name='{{x.pin}}_ISR' id='{{x.pin}}_ISR'
ng-model="DYNAMIC['PINS'][x.pin]['ISRS1']" ng-if='MCU!="MCU_AVR"'
model-scope-name="DYNAMIC.PINS.{{x.pin}}.ISRS1" config-file="boardmap">
<div class="mb-3 d-flex d-gap-10" ng-if='MCU=="MCU_AVR"'>
<select class='form-select form-select-sm' name='{{x.pin}}_ISR' id='{{x.pin}}_ISR'
ng-model="DYNAMIC['PINS'][x.pin]['ISRS2']"
ng-options="y.isr as y.isr for y in ISRS | filter: {'mcu': MCU}" var-type="int-nullable"
model-scope-name="DYNAMIC.PINS.{{x.pin}}.ISRS2" config-file="boardmap">
<option value=""></option>
</select>
<small id="helpId" class="form-text text-muted"><a
href="https://github.com/Paciente8159/uCNC/wiki/AVR:-Customizing#interrupt-on-change-feature"
target="_blank">wiki</a></small>
</div>
</div>
</td>
</tr>
<tbody>
</tbody>
</table>
</div>
<div class="tab-pane table-container" id="analoginputs" role="tabpanel" aria-labelledby="analoginputs-tab">
<table class="table">
<thead>
<tr>
<th scope="col">µCNC pin</th>
<th scope="col">Pin number</th>
<th scope="col">Pin port</th>
<th scope="col">CHANNEL</th>
</tr>
</thead>
<tr ng-repeat="x in UCNCPINS | orTypeFilter: ['analog']">
<th scope='row'>{{x.pin}}</th>
<td><select class='form-select form-select-sm' name='{{x.pin}}_BIT' id='{{x.pin}}_BIT'
ng-model="DYNAMIC['PINS'][x.pin]['BIT']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.BIT"
ng-options="y.pin as y.pin for y in PINS | filter: {'mcu': MCU}" var-type="int-nullable"
config-file="boardmap" ng-change="definedPins()">
<option value=""></option>
</select></td>
<td><select class='form-select form-select-sm' name='{{x.pin}}_PORT' id='{{x.pin}}_PORT'
ng-model="DYNAMIC['PINS'][x.pin]['PORT']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.PORT"
ng-options="y.port as y.port for y in PORTS | filter: {'mcu': MCU}" config-file="boardmap"
ng-change="definedPins()">
<option value=""></option>
</select></td>
<td>
<div ng-if='x.type=="analog"'>
<select class='form-select form-select-sm' name='{{x.pin}}_CHANNEL' id='{{x.pin}}_CHANNEL'
ng-model="DYNAMIC['PINS'][x.pin]['CHANNEL']"
ng-options="y.channel as y.channel for y in ANALOG_CHANNELS | filter: {'mcu': MCU}"
var-type="int-nullable" ng-if='MCU!="MCU_AVR"' model-scope-name="DYNAMIC.PINS.{{x.pin}}.CHANNEL"
config-file="boardmap">
<option value=""></option>
</select>
<select class='form-select form-select-sm' name='{{x.pin}}_CHANNEL' id='{{x.pin}}_CHANNEL'
ng-model="DYNAMIC['PINS'][x.pin]['CHANNEL']"
ng-options="y.channel as y.channel for y in ANALOG_CHANNELS | filter: {'mcu': MCU}"
ng-if='MCU=="MCU_AVR"' model-scope-name="DYNAMIC.PINS.{{x.pin}}.CHANNEL" config-file="boardmap">
<option value=""></option>
</select>
</div>
</td>
</tr>
<tbody>
</tbody>
</table>
</div>
<div class="tab-pane table-container" id="genericinputs" role="tabpanel"
aria-labelledby="genericinputs-tab">
<table class="table">
<thead>
<tr>
<th scope="col">µCNC pin</th>
<th scope="col">Pin number</th>
<th scope="col">Pin port</th>
<th scope="col">Pullup</th>
<th scope="col">ISR</th>
</tr>
</thead>
<tr ng-repeat="x in UCNCPINS | orTypeFilter: ['din']">
<th scope='row'>{{x.pin}}</th>
<td><select class='form-select form-select-sm' name='{{x.pin}}_BIT' id='{{x.pin}}_BIT'
ng-model="DYNAMIC['PINS'][x.pin]['BIT']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.BIT"
ng-options="y.pin as y.pin for y in PINS | filter: {'mcu': MCU}" var-type="int-nullable"
config-file="boardmap" ng-change="definedPins()">
<option value=""></option>
</select></td>
<td><select class='form-select form-select-sm' name='{{x.pin}}_PORT' id='{{x.pin}}_PORT'
ng-model="DYNAMIC['PINS'][x.pin]['PORT']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.PORT"
ng-options="y.port as y.port for y in PORTS | filter: {'mcu': MCU}" config-file="boardmap"
ng-change="definedPins()">
<option value=""></option>
</select></td>
<td>
<div class="form-check form-switch" ng-if='x.type.includes("pullup")'>
<input class="form-check-input" type="checkbox" name='{{x.pin}}_PULLUP' id='{{x.pin}}_PULLUP'
ng-model="DYNAMIC['PINS'][x.pin]['PULLUP']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.PULLUP"
config-file="boardmap">
</div>
</td>
<td>
<div class="form-check form-switch" ng-if='x.type.includes("interruptable_input")'>
<input class="form-check-input" type="checkbox" name='{{x.pin}}_ISR' id='{{x.pin}}_ISR'
ng-model="DYNAMIC['PINS'][x.pin]['ISRS1']" ng-if='MCU!="MCU_AVR"'
model-scope-name="DYNAMIC.PINS.{{x.pin}}.ISRS1" config-file="boardmap">
<div class="mb-3 d-flex d-gap-10" ng-if='MCU=="MCU_AVR"'>
<select class='form-select form-select-sm' name='{{x.pin}}_ISR' id='{{x.pin}}_ISR'
ng-model="DYNAMIC['PINS'][x.pin]['ISRS2']"
ng-options="y.isr as y.isr for y in ISRS | filter: {'mcu': MCU}" var-type="int-nullable"
model-scope-name="DYNAMIC.PINS.{{x.pin}}.ISRS2" config-file="boardmap">
<option value=""></option>
</select>
<small id="helpId" class="form-text text-muted"><a
href="https://github.com/Paciente8159/uCNC/wiki/AVR:-Customizing#interrupt-on-change-feature"
target="_blank">wiki</a></small>
</div>
</div>
</td>
</tr>
<tbody>
</tbody>
</table>
</div>
<div class="tab-pane table-container" id="communicationports" role="tabpanel"
aria-labelledby="communicationports-tab">
<table class="table">
<thead>
<tr>
<th scope="col">µCNC pin</th>
<th scope="col">Pin number</th>
<th scope="col">Pin port</th>
<th scope="col">Pullup</th>
<th scope="col">IO OFFSET(74HC595)</th>
</tr>
</thead>
<tr ng-repeat="x in UCNCPINS | orTypeFilter: ['communications']">
<th scope='row'>{{x.pin}}</th>
<td><select class='form-select form-select-sm' name='{{x.pin}}_BIT' id='{{x.pin}}_BIT'
ng-model="DYNAMIC['PINS'][x.pin]['BIT']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.BIT"
ng-options="y.pin as y.pin for y in PINS | filter: {'mcu': MCU}" var-type="int-nullable"
config-file="boardmap" ng-change="definedPins()">
<option value=""></option>
</select></td>
<td><select class='form-select form-select-sm' name='{{x.pin}}_PORT' id='{{x.pin}}_PORT'
ng-model="DYNAMIC['PINS'][x.pin]['PORT']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.PORT"
ng-options="y.port as y.port for y in PORTS | filter: {'mcu': MCU}" config-file="boardmap"
ng-change="definedPins()">
<option value=""></option>
</select></td>
<td>
<div class="form-check form-switch" ng-if='x.type.includes("pullup")'>
<input class="form-check-input" type="checkbox" name='{{x.pin}}_PULLUP' id='{{x.pin}}_PULLUP'
ng-model="DYNAMIC['PINS'][x.pin]['PULLUP']" model-scope-name="DYNAMIC.PINS.{{x.pin}}.PULLUP"
config-file="boardmap">
</div>
</td>
<td>
<div ng-if='x.type=="pwm" || x.type=="servo" || x.type.includes("generic_output")'>
<select class='form-select form-select-sm' name='{{x.pin}}_IO_OFFSET' id='{{x.pin}}_IO_OFFSET'
ng-model="DYNAMIC['PINS'][x.pin]['IO_OFFSET']"
model-scope-name="DYNAMIC.PINS.{{x.pin}}.IO_OFFSET" var-type="int-nullable"
ng-options="y.offset as y.offset for y in IO_OFFSETS" config-file="boardmap"
ng-change="definedPins()">
<option value=""></option>
</select>
</div>
</td>
</tr>
<tbody>
</tbody>
</table>
</div>
</div>
</fieldset>
</div>
<div class="tab-pane" id="confighal" role="tabpanel" aria-labelledby="confighal-tab">
<!-- <div ng-include="'hal.html'"></div> -->
<fieldset>
<legend>Controls, limits and probe</legend>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="FORCE_SOFT_POLLING"
ng-model="DYNAMIC['FORCE_SOFT_POLLING']" model-scope-name="DYNAMIC.FORCE_SOFT_POLLING" config-file="hal">
<label class="form-check-label" for="FORCE_SOFT_POLLING">Force interruptable inputs software
polling (this disables control, limits, probe and generic inputs interrupts)</label>
</div>
<fieldset>
<legend>Controls</legend>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="DISABLE_ALL_CONTROLS"
ng-model="DYNAMIC['DISABLE_ALL_CONTROLS']" model-scope-name="DYNAMIC.DISABLE_ALL_CONTROLS"
config-file="hal">
<label class="form-check-label" for="DISABLE_ALL_CONTROLS">Disable control inputs (E-STOP,
Security
door,
Hold, Cycle start-Resume)</label>
</div>
<div ng-hide="DYNAMIC['DISABLE_ALL_CONTROLS']">
<div class="form-check form-check-inline" ng-repeat="y in CONTROLS">
<input class="form-check-input" type="checkbox" id="{{y}}_PULLUP_ENABLE" value="{{y}}_PULLUP_ENABLE"
ng-model="DYNAMIC['PULLUPS_ENABLE'][y]" model-scope-name="DYNAMIC.PULLUPS_ENABLE.{{y}}"
config-file="hal">
<label class="form-check-label" for="{{y}}_PULLUP_ENABLE">Enable {{y}} internal pullup
resistor</label>
</div>
</div>
</fieldset>
<fieldset>
<legend>Limit switches</legend>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="DISABLE_ALL_LIMITS"
ng-model="DYNAMIC['DISABLE_ALL_LIMITS']" model-scope-name="DYNAMIC.DISABLE_ALL_LIMITS"
config-file="hal">
<label class="form-check-label" for="DISABLE_ALL_LIMITS">Disable all limit switches</label>
</div>
<!-- <div ng-hide="DYNAMIC['DISABLE_ALL_LIMITS']"> -->
<div ng-hide="1">
<div class="form-check form-check-inline" ng-repeat="y in LIMITS | filter: {'axis': AXIS_COUNT}">
<input class="form-check-input" type="checkbox" id="{{y.limit}}_DISABLE" value="{{y.limit}}_DISABLE"
ng-model="DYNAMIC['DISABLES'][y.limit]" model-scope-name="DYNAMIC.DISABLES.{{y.limit}}"
config-file="hal">
<label class="form-check-label" for="{{y.limit}}_DISABLE">Disable {{y.limit}}</label>
</div>
</div>
<div ng-hide="DYNAMIC['DISABLE_ALL_LIMITS']">
<div class="form-check form-check-inline" ng-repeat="y in LIMITS | filter: {'axis': AXIS_COUNT}">
<input class="form-check-input" type="checkbox" id="{{y.limit}}_PULLUP_ENABLE"
value="{{y.limit}}_PULLUP_ENABLE" ng-disabled="{{y.limit}}_DISABLE"
ng-model="DYNAMIC['PULLUPS_ENABLE'][y.limit]" model-scope-name="DYNAMIC.PULLUPS_ENABLE.{{y.limit}}"
config-file="hal">
<label class="form-check-label" for="{{y.limit}}_PULLUP_ENABLE">Enable {{y.limit}} internal
pullup
resistor</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="ENABLE_RT_LIMITS_CHECKING"
ng-model="DYNAMIC['ENABLE_RT_LIMITS_CHECKING']" model-scope-name="DYNAMIC.ENABLE_RT_LIMITS_CHECKING"
config-file="hal">
<label class="form-check-label" for="ENABLE_RT_LIMITS_CHECKING">Check limits on the stepper ISR (high
precision homing)</label>
</div>
<div class="form-check form-switch" ng-show="AXIS_COUNT>3 && VERSION>11101">
<input class="form-check-input" type="checkbox" id="DISABLE_ROTATIONAL_AXIS_LIMITS_AFTER_HOMING"
ng-model="DYNAMIC['DISABLE_ROTATIONAL_AXIS_LIMITS_AFTER_HOMING']"
model-scope-name="DYNAMIC.DISABLE_ROTATIONAL_AXIS_LIMITS_AFTER_HOMING" config-file="hal">
<label class="form-check-label" for="ENABLE_RT_LIMITS_CHECKING">Disable limit alarm for rotational axis
after homing</label>
</div>
</div>
</fieldset>
<fieldset>
<legend>Generic IO</legend>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="DISABLE_HAL_CONFIG_PROTECTION"
ng-model="DYNAMIC['DISABLE_HAL_CONFIG_PROTECTION']"
model-scope-name="DYNAMIC.DISABLE_HAL_CONFIG_PROTECTION" config-file="hal">
<label class="form-check-label" for="DISABLE_HAL_CONFIG_PROTECTION">Allow generic inputs to be
configurable as outputs</label>
<br><small class="form-text text-muted">this may be needed if using generic input pins for communication
with peripherals using software emulated protocol</small>
</div>
</fieldset>
<fieldset>
<legend>Probe</legend>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="DISABLE_PROBE" ng-model="DYNAMIC['DISABLE_PROBE']"
model-scope-name="DYNAMIC.DISABLE_PROBE" config-file="hal">
<label class="form-check-label" for="DISABLE_PROBE">Disable probe</label>
</div>
<div ng-hide="DYNAMIC['DISABLE_PROBE']">
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="PROBE_PULLUP_ENABLE" value="PROBE_PULLUP_ENABLE"
ng-model="DYNAMIC['PROBE_PULLUP_ENABLE']" model-scope-name="DYNAMIC.PROBE_PULLUP_ENABLE"
config-file="hal">
<label class="form-check-label" for="">Enable PROBE internal pullup resistor</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="ENABLE_RT_PROBE_CHECKING"
ng-model="DYNAMIC['ENABLE_RT_PROBE_CHECKING']" model-scope-name="DYNAMIC.ENABLE_RT_PROBE_CHECKING"
config-file="hal">
<label class="form-check-label" for="ENABLE_RT_PROBE_CHECKING">Check limits on the stepper ISR (high
precision probing)</label>
</div>
</div>
</fieldset>
</fieldset>
<fieldset ng-if="VERSION<10790">
<legend>Multi drive axis</legend>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="ENABLE_DUAL_DRIVE_AXIS"
ng-model="DYNAMIC['ENABLE_DUAL_DRIVE_AXIS']" model-scope-name="DYNAMIC.ENABLE_DUAL_DRIVE_AXIS"
config-file="hal">
<label class="form-check-label" for="ENABLE_DUAL_DRIVE_AXIS">Enable multi-drive AXIS</label>
</div>
<div ng-show="DYNAMIC['ENABLE_DUAL_DRIVE_AXIS']">
<div class="mb-3">
<label for="" class="form-label">Select multi-drive FIRST axis</label>
<select class="form-select form-select-md" name="DUAL_DRIVE0_AXIS" id="DUAL_DRIVE0_AXIS"
ng-model="DYNAMIC['DUAL_DRIVE0_AXIS']" model-scope-name="DYNAMIC.DUAL_DRIVE0_AXIS" config-file="hal">
<option value="" selected></option>
<option value="X">X</option>
<option value="Y">Y</option>
<option value="Z">Z</option>
</select>
</div>
<div class="mb-3">
<label for="" class="form-label">Select FIRST multi-drive axis second stepper</label>
<select class="form-select form-select-md" name="DUAL_DRIVE0_STEPPER" id="DUAL_DRIVE0_STEPPER"
ng-model="DYNAMIC['DUAL_DRIVE0_STEPPER']" model-scope-name="DYNAMIC.DUAL_DRIVE0_STEPPER"
config-file="hal">
<option value=""></option>
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6" selected>6</option>
<option value="7">7</option>
</select>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="DUAL_DRIVE0_ENABLE_SELFSQUARING"
ng-model="DYNAMIC['DUAL_DRIVE0_ENABLE_SELFSQUARING']"
model-scope-name="DYNAMIC.DUAL_DRIVE0_ENABLE_SELFSQUARING" config-file="hal">
<label class="form-check-label" for="DUAL_DRIVE0_ENABLE_SELFSQUARING">Enable FIRST axis
auto-squaring</label>
</div>
<div class="mb-3">
<label for="" class="form-label">Select multi-drive SECOND axis</label>
<select class="form-select form-select-md" name="DUAL_DRIVE1_AXIS" id="DUAL_DRIVE1_AXIS"
ng-model="DYNAMIC['DUAL_DRIVE1_AXIS']" model-scope-name="DYNAMIC.DUAL_DRIVE1_AXIS" config-file="hal">
<option value="" selected></option>
<option value="X">X</option>
<option value="Y">Y</option>
<option value="Z">Z</option>
</select>
</div>
<div class="mb-3">
<label for="" class="form-label">Select SECOND multi-drive axis second stepper</label>
<select class="form-select form-select-md" name="DUAL_DRIVE1_STEPPER" id="DUAL_DRIVE1_STEPPER"
ng-model="DYNAMIC['DUAL_DRIVE1_STEPPER']" model-scope-name="DYNAMIC.DUAL_DRIVE1_STEPPER"