-->
Page 1 of 1

Help with NodeMCU project

PostPosted: Fri May 08, 2020 4:49 pm
by TheJadeRabbit
Hi, sorry if this is the wrong place to post this. I am trying to hook up a TOLED(See below*) with the NodeMCU Esp8266. I have everything hooked up accordingly to when I had it connected to an Arduino Nano. CS and DC are hooked up to a couple of unused GPIO pins, and SCK and MOSI are hooked up to digital SPI pins 7 & 5 respectively on the NodeMCU. The display doesn't turn on, but is still receiving power. I think this is an issue with SPI connection or pin definition(I could be very wrong on that). Is there a rule of thumb I am missing on how to declare pins? I have my code attached, thanks!

*https://learn.sparkfun.com/tutorials/transparent-graphical-oled-breakout-hookup-guide

Re: Help with NodeMCU project

PostPosted: Sat May 09, 2020 3:52 am
by schufti
be aware that "plain numbers" for pins in sketch refer to the native gpio# of the esp8266. These do not correspond with the Dx designations of the NodeMCU (gpio0 != D0) !!!