Skip to content

Commit

Permalink
prevent selection of SPI pins for 8266
Browse files Browse the repository at this point in the history
  • Loading branch information
markusdd committed Mar 25, 2023
1 parent 79980fd commit 2e0add3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ src/web/html/tmp/*
*.db
*.suo
*.ipch
src/output.map
6 changes: 5 additions & 1 deletion src/web/html/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -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"}, [
Expand Down

0 comments on commit 2e0add3

Please sign in to comment.