NodeMCU ESP8266 - Jadwal Sholat berbasis NTP dengan 1.8" TFT SPI Display
This is basically a NTP clock running on NodeMCU ESP8266 with Adafruit compatible 1.8" TFT SPI display. Adding Jadwal Sholat (Salat Time) by requesting it from https://api.myquran.com on a daily basis and WiFiManager https://github.com/tzapu/WiFiManager to prevent hard coding SSID and Password.
- NodeMCU ESP8266 - https://bit.ly/3zTizP3 or equivalent.
- 1.8" TFT SPI Display - https://bit.ly/3QDjysy or equivalent.
- Breadboard - https://bit.ly/3xL2dFn or equivalent.
- Jumpers - https://bit.ly/39KrPdJ or equivalent.
Display <---> NodeMCU
VCC <---> 5V or 3.3V
GND <---> GND
CS <---> GPIO 0
RESET/RST <---> GPIO 2
A0/DC <---> GPIO 4
SDA/MOSI <---> GPIO 13
SCK/SCLK <---> GPIO 14
LED/BL <---> GPIO 5
Note: On some Adafruit compatible 1.8" TFT SPI display, RESET is RST, A0 is DC, SDA is MOSI, SCK is SCLK and LED is BL. So pay attention to your wiring, check it twice before powering up the device.
Upon start up the WiFiManager kicks in. If a saved WiFi configuration found it will configure NodeMCU as a WiFi Station (STA) and connect to the WiFi Access Point that is configured in the saved configuration. Otherwise it will configure NodeMCU as an Access Point with SSID: "JamSholat" and spawn a web page that you can connect and configure using your Smartphone. Once the WiFi has been configured it will switch to STA mode and start the clock.