NodeMcu ,no more Pin

Hello all,

I would connect TFT screen + rotary encoder to my NodeMcu.

This is wiring for the rotary:

GND to GND

  • to 3.3V
    SW to D3
    DT to D2
    CLK to D1

My TFT screen use :
D1, D2, D4, 3V, GND, SCK, SDA, VCC

as D1 and D2 are already used by the screen I tried D6 and D8 but it does not work. If I remove the screen, the encoder works according to the wiring described above.

How to do in this case?

Sorry, i'm a newbie, thank you.