Digital pins works. However you need to use native index markers. For example D0 may be D16. You can find relation for your hardware here. For NodeMCU it look like this :
"pins": {
"D0": 16, "D1": 5, "D2": 4, "D3": 0, "D4": 2,
"D5": 14, "D6": 12, "D7": 13, "D8": 15, "D9": 3,
"D10": 1
}