board.json 1.1 KB
Newer Older
E
ethan.lcz 已提交
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
{
  "name": "esp32",
  "version": "1.0.0",
  "io": {
    "as608": {
      "type": "UART",
      "port": 2,
      "dataWidth": 8,
      "baudRate": 57600,
      "stopBits": 2,
      "flowControl": "disable",
      "parity": "none"
    },
    "oled_spi": {
      "type": "SPI",
      "port": 1,
      "mode": "master",
      "freq": 26000000
    },
    "oled_dc": {
      "type": "GPIO",
      "port": 28,
      "dir": "output",
      "pull": "pullup"
    },
    "oled_res": {
      "type": "GPIO",
      "port": 30,
      "dir": "output",
      "pull": "pullup"
    },
    "KEY_1": {
      "type": "GPIO",
      "port": 23,
      "dir": "irq",
      "pull": "pullup",
      "intMode": "rising"
    },
    "KEY_2": {
      "type": "GPIO",
      "port": 20,
      "dir": "irq",
      "pull": "pullup",
      "intMode": "rising"
    },
    "KEY_3": {
      "type": "GPIO",
      "port": 21,
      "dir": "irq",
      "pull": "pullup",
      "intMode": "rising"
    },
    "KEY_4": {
      "type": "GPIO",
      "port": 26,
      "dir": "irq",
      "pull": "pullup",
      "intMode": "rising"
    }
  },
  "debugLevel": "ERROR",
  "repl": "disable"
}