prevent selection of SPI pins for 8266

This commit is contained in:
Markus Krause 2023-03-25 22:52:10 +01:00
parent 79980fd8bf
commit 2e0add3548
2 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View file

@ -12,3 +12,4 @@ src/web/html/tmp/*
*.db
*.suo
*.ipch
src/output.map

View file

@ -655,7 +655,11 @@
function parsePinout(obj, type, system) {
var e = document.getElementById("pinout");
pins = [['cs', 'pinCs'], ['ce', 'pinCe'], ['irq', 'pinIrq'], ['sclk', 'pinSclk'], ['mosi', 'pinMosi'], ['miso', 'pinMiso'], ['led0', 'pinLed0'], ['led1', 'pinLed1']];
if ("ESP8266" == type) {
pins = [['cs', 'pinCs'], ['ce', 'pinCe'], ['irq', 'pinIrq'], ['led0', 'pinLed0'], ['led1', 'pinLed1']];
} else {
pins = [['cs', 'pinCs'], ['ce', 'pinCe'], ['irq', 'pinIrq'], ['sclk', 'pinSclk'], ['mosi', 'pinMosi'], ['miso', 'pinMiso'], ['led0', 'pinLed0'], ['led1', 'pinLed1']];
}
for(p of pins) {
e.append(
ml("div", {class: "row mb-3"}, [