diff --git a/docs/DeviceProfiles.md b/docs/DeviceProfiles.md index f67ca631..083b9ecf 100644 --- a/docs/DeviceProfiles.md +++ b/docs/DeviceProfiles.md @@ -78,7 +78,7 @@ To change the device profile, navigate to the "Device Manager" and selected the ] ``` -The json file can contain multiple profiles. Each profile requires a name and different parameters. If one parameter is not set, the default value, as compiled into the firmware is used. The example above shows all the currently supported values. Others may follow. A sample file with a lot of boards can be found [here](pin_mapping.json). This means you can just flash the generic bin file and upload the pin_mapping.json file. Then you select your board and everything works hopyfully as expected. +The json file can contain multiple profiles. Each profile requires a name and different parameters. If one parameter is not set, the default value, as compiled into the firmware is used. The example above shows all the currently supported values. Others may follow. Sample files for some boards can be found [here](DeviceProfiles/). This means you can just flash the generic bin file and upload the json file. Then you select your board and everything works hopyfully as expected. ## Implemented configuration values diff --git a/docs/DeviceProfiles/lilygo_ttgo_t-internet_poe.json b/docs/DeviceProfiles/lilygo_ttgo_t-internet_poe.json new file mode 100644 index 00000000..0bc2857c --- /dev/null +++ b/docs/DeviceProfiles/lilygo_ttgo_t-internet_poe.json @@ -0,0 +1,22 @@ +[ + { + "name": "LILYGO TTGO T-Internet-POE", + "nrf24": { + "miso": 2, + "mosi": 15, + "clk": 14, + "irq": 34, + "en": 12, + "cs": 4 + }, + "eth": { + "enabled": true, + "phy_addr": 0, + "power": -1, + "mdc": 23, + "mdio": 18, + "type": 0, + "clk_mode": 3 + } + } +] \ No newline at end of file diff --git a/docs/DeviceProfiles/nodemcu_esp32.json b/docs/DeviceProfiles/nodemcu_esp32.json new file mode 100644 index 00000000..c08575ea --- /dev/null +++ b/docs/DeviceProfiles/nodemcu_esp32.json @@ -0,0 +1,72 @@ +[ + { + "name": "Generic NodeMCU 38 pin", + "nrf24": { + "miso": 19, + "mosi": 23, + "clk": 18, + "irq": 16, + "en": 4, + "cs": 5 + }, + "eth": { + "enabled": false, + "phy_addr": -1, + "power": -1, + "mdc": -1, + "mdio": -1, + "type": 0, + "clk_mode": 0 + } + }, + { + "name": "Generic NodeMCU 32 with SSD1306", + "nrf24": { + "miso": 19, + "mosi": 23, + "clk": 18, + "irq": 16, + "en": 4, + "cs": 5 + }, + "eth": { + "enabled": false, + "phy_addr": -1, + "power": -1, + "mdc": -1, + "mdio": -1, + "type": 0, + "clk_mode": 0 + }, + "display": { + "type": 2, + "data": 21, + "clk": 22 + } + }, + { + "name": "Generic NodeMCU 32 with SH1106", + "nrf24": { + "miso": 19, + "mosi": 23, + "clk": 18, + "irq": 16, + "en": 4, + "cs": 5 + }, + "eth": { + "enabled": false, + "phy_addr": -1, + "power": -1, + "mdc": -1, + "mdio": -1, + "type": 0, + "clk_mode": 0 + }, + "display": { + "type": 3, + "data": 21, + "clk": 22 + } + } +] \ No newline at end of file diff --git a/docs/DeviceProfiles/olimex_esp32_evb.json b/docs/DeviceProfiles/olimex_esp32_evb.json new file mode 100644 index 00000000..9b66926d --- /dev/null +++ b/docs/DeviceProfiles/olimex_esp32_evb.json @@ -0,0 +1,22 @@ +[ + { + "name": "Olimex ESP32-EVB", + "nrf24": { + "miso": 15, + "mosi": 2, + "clk": 14, + "irq": 13, + "en": 16, + "cs": 17 + }, + "eth": { + "enabled": true, + "phy_addr": 0, + "power": 12, + "mdc": 23, + "mdio": 18, + "type": 0, + "clk_mode": 0 + } + } +] \ No newline at end of file diff --git a/docs/DeviceProfiles/olimex_esp32_poe.json b/docs/DeviceProfiles/olimex_esp32_poe.json new file mode 100644 index 00000000..001ba7b9 --- /dev/null +++ b/docs/DeviceProfiles/olimex_esp32_poe.json @@ -0,0 +1,72 @@ +[ + { + "name": "Olimex ESP32-POE", + "nrf24": { + "miso": 15, + "mosi": 2, + "clk": 14, + "irq": 13, + "en": 16, + "cs": 5 + }, + "eth": { + "enabled": true, + "phy_addr": 0, + "power": 12, + "mdc": 23, + "mdio": 18, + "type": 0, + "clk_mode": 3 + } + }, + { + "name": "Olimex ESP32-POE with SSD1306", + "nrf24": { + "miso": 15, + "mosi": 2, + "clk": 14, + "irq": 13, + "en": 16, + "cs": 5 + }, + "eth": { + "enabled": true, + "phy_addr": 0, + "power": 12, + "mdc": 23, + "mdio": 18, + "type": 0, + "clk_mode": 3 + }, + "display": { + "type": 2, + "data": 33, + "clk": 32 + } + }, + { + "name": "Olimex ESP32-POE with SH1106", + "nrf24": { + "miso": 15, + "mosi": 2, + "clk": 14, + "irq": 13, + "en": 16, + "cs": 5 + }, + "eth": { + "enabled": true, + "phy_addr": 0, + "power": 12, + "mdc": 23, + "mdio": 18, + "type": 0, + "clk_mode": 3 + }, + "display": { + "type": 2, + "data": 33, + "clk": 32 + } + } +] \ No newline at end of file diff --git a/docs/DeviceProfiles/wt32-eth01.json b/docs/DeviceProfiles/wt32-eth01.json new file mode 100644 index 00000000..ebf874e7 --- /dev/null +++ b/docs/DeviceProfiles/wt32-eth01.json @@ -0,0 +1,22 @@ +[ + { + "name": "WT32-ETH01", + "nrf24": { + "miso": 4, + "mosi": 2, + "clk": 32, + "irq": 33, + "en": 14, + "cs": 15 + }, + "eth": { + "enabled": true, + "phy_addr": 1, + "power": 16, + "mdc": 23, + "mdio": 18, + "type": 0, + "clk_mode": 3 + } + } +] \ No newline at end of file diff --git a/docs/pin_mapping.json b/docs/pin_mapping.json deleted file mode 100644 index 1628e20e..00000000 --- a/docs/pin_mapping.json +++ /dev/null @@ -1,172 +0,0 @@ -[ - { - "name": "Generic NodeMCU 38 pin", - "nrf24": { - "miso": 19, - "mosi": 23, - "clk": 18, - "irq": 16, - "en": 4, - "cs": 5 - }, - "eth": { - "enabled": false, - "phy_addr": -1, - "power": -1, - "mdc": -1, - "mdio": -1, - "type": 0, - "clk_mode": 0 - } - }, - { - "name": "Generic NodeMCU 38 pin with SSD1306", - "nrf24": { - "miso": 19, - "mosi": 23, - "clk": 18, - "irq": 16, - "en": 4, - "cs": 5 - }, - "eth": { - "enabled": false, - "phy_addr": -1, - "power": -1, - "mdc": -1, - "mdio": -1, - "type": 0, - "clk_mode": 0 - }, - "display": { - "type": 2, - "data": 21, - "clk": 22 - } - }, - { - "name": "Olimex ESP32-POE", - "nrf24": { - "miso": 15, - "mosi": 2, - "clk": 14, - "irq": 13, - "en": 16, - "cs": 5 - }, - "eth": { - "enabled": true, - "phy_addr": 0, - "power": 12, - "mdc": 23, - "mdio": 18, - "type": 0, - "clk_mode": 3 - } - }, - { - "name": "Olimex ESP32-POE with SSD1306", - "nrf24": { - "miso": 15, - "mosi": 2, - "clk": 14, - "irq": 13, - "en": 16, - "cs": 5 - }, - "eth": { - "enabled": true, - "phy_addr": 0, - "power": 12, - "mdc": 23, - "mdio": 18, - "type": 0, - "clk_mode": 3 - }, - "display": { - "type": 2, - "data": 33, - "clk": 32 - } - }, - { - "name": "Olimex ESP32-EVB", - "nrf24": { - "miso": 15, - "mosi": 2, - "clk": 14, - "irq": 13, - "en": 16, - "cs": 17 - }, - "eth": { - "enabled": true, - "phy_addr": 0, - "power": 12, - "mdc": 23, - "mdio": 18, - "type": 0, - "clk_mode": 0 - } - }, - { - "name": "Generic NodeMCU 30 pin", - "nrf24": { - "miso": 19, - "mosi": 23, - "clk": 18, - "irq": 16, - "en": 17, - "cs": 5 - }, - "eth": { - "enabled": false, - "phy_addr": -1, - "power": -1, - "mdc": -1, - "mdio": -1, - "type": 0, - "clk_mode": 0 - } - }, - { - "name": "WT32-ETH01", - "nrf24": { - "miso": 4, - "mosi": 2, - "clk": 32, - "irq": 33, - "en": 14, - "cs": 15 - }, - "eth": { - "enabled": true, - "phy_addr": 1, - "power": 16, - "mdc": 23, - "mdio": 18, - "type": 0, - "clk_mode": 3 - } - }, - { - "name": "LILYGO TTGO T-Internet-POE", - "nrf24": { - "miso": 2, - "mosi": 15, - "clk": 14, - "irq": 34, - "en": 12, - "cs": 4 - }, - "eth": { - "enabled": true, - "phy_addr": 0, - "power": -1, - "mdc": 23, - "mdio": 18, - "type": 0, - "clk_mode": 3 - } - } -] \ No newline at end of file