forked from tbnobody/OpenDTU
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'tbnobody/OpenDTU/master'
- Loading branch information
Showing
48 changed files
with
815 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Display integration | ||
|
||
OpenDTU currently supports 3 types of displays (SSD1306, SH1106 and PCD8544). Currently only displays with a resolution of 128x64 pixel are supported. To activate a display you have to specify it's type and pin assignment either in the `platformio_override.ini` or in a device profile. Due to the fact that device profiles work with the pre-compiled binary the following documentation will only cover the device profile method. | ||
|
||
You can either create your own device profile as described [here](DeviceProfiles.md) or use some pre-defined. The pre-defined profiles can be found [here](DeviceProfiles/). You can simply open the json file with a text editor of your choice to view/edit the pin assignment. | ||
|
||
## Uploading Device Profiles | ||
|
||
Use the "Config Management" site to upload (Restore) the json file. Make sure to choose "Pin Mapping (pin_mapping.json)" in the combo box. After you click on restore the ESP will restart. At this point, the profile is not yet active. Please read the next chapter. | ||
![](screenshots/14_ConfigManagement.png) | ||
|
||
## Selecting the a Device Profile | ||
|
||
After you uploaded the device profile you can select the profile in the "Device Manager" view. After a click on "Save" the ESP will be restarted and the pin assignment is active. At this point the display should already show something. Please see the next chapter for display settings. | ||
![](screenshots/20_DeviceManager_Pin.png) | ||
|
||
## Display Settings | ||
|
||
Display settings can also be found in the "Device Manager". | ||
![](screenshots/21_DeviceManager_Display.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.