Help with NeoPixel LED Strip and ESP8266WiFi

Greetings to all forensics. I need some help, please.
I got an Arduino code, made for a clock, using an LED strip and ESP8266 and, with a lot of effort, I adapted it to two LED strips; Hours + Minutes/Seconds. It is working correctly and was made to light up an LED for the Hours, an LED for the Minutes and an LED for the Seconds, but I would like it to light up 3 LEDs for the Hours (it is lighting up 1 LED).
I have tried a few ways but, due to my lack of knowledge in codes, I am not able to do it. I assume that the change has to do with the lines below...

void drawHands() {
  clearHands();

  // draw the LEDs for the hours, using the color red
  pixels.setPixelColor(hour_hand, pixels.Color(255, 0, 0));

Code:

#include <NtpClientLib.h>         // Biblioteca NtpClientLib by German Martin v3.0.2-beta
#include <ESP8266WiFi.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>          // https://github.com/tzapu/WiFiManager WiFi Configuration Magic
#include <Adafruit_NeoPixel.h>    // Biblioteca Adafruit_NeoPixel v1.0.5

#define NUMPIXELS      60         // número de LEDs NeoPixel
#define LED_PIN        14         // pino 14 (D5) no ESP8266 (GPIO2/pino 3 no ESP-01)
#define LED_PIN2       12         // pino 12 (D6) no ESP8266 (GPIO3/pino 7 no ESP-01)
#define mirror_hands   false      // No caso do anel NeoPixel estar conectado no sentido anti-horário.

byte hour_hand, minute_hand, second_hand, previous_second;

Adafruit_NeoPixel pixels = Adafruit_NeoPixel(60, 14, NEO_GRB + NEO_KHZ800);
Adafruit_NeoPixel pixels2 = Adafruit_NeoPixel(60, 12, NEO_GRB + NEO_KHZ800);

// limpe todos os leds para desligar
void clearHands() {
  for (byte i = 0; i <= NUMPIXELS; i++) {
    pixels.setPixelColor(i, pixels.Color(0, 0, 0));
    pixels2.setPixelColor(i, pixels.Color(0, 0, 0));
  }
}

void drawHands() {
  clearHands();

  // draw the LEDs for the hours, using the color red
  pixels.setPixelColor(hour_hand, pixels.Color(255, 0, 0));

  // desenha os LEDs dos minutos, usando a cor verde
  pixels2.setPixelColor(minute_hand, pixels.Color(0, 128, 0));

  // desenha os LEDs dos segundos, usando a cor azul intenso
  pixels2.setPixelColor(second_hand, pixels.Color(0, 0, 255));

  // mostra todos os LEDs - aqueles que definimos com uma cor que serão visíveis.
  pixels.show();
  pixels2.show();

  // apenas uma string de depuração, pode ser removida
  // Serial.printf("hour:%d (%d), minute:%d second:%d (%d) \n",hour(),hour_hand,minute_hand,true_second,second_hand);
}

void setup() {
  Serial.begin(115200);
  WiFiManager wifiManager; // assistente de configuração de WiFi
  wifiManager.autoConnect("NeoPixel_Clock", "secret"); // configuração do ponto de acesso, defina seu próprio segredo.
  Serial.println("WiFi Client connected!)");
  NTP.begin("br.pool.ntp.org", -4, true); // obter tempo do pool de servidores NTP.
  NTP.setInterval(63);
  pixels.begin();
  pixels2.begin();
  pixels.setBrightness(254);
}

void loop() {
  byte hour_offset;

  minute_hand = minute();
  if (minute_hand >= 10) {
    hour_offset = (minute_hand / 10) - 1;
  } else
  {
    hour_offset = 0;
  }

  if (hour() >= 12) {
    hour_hand = ((hour() - 12) * 5) + hour_offset;
  }
  else {
    hour_hand = (hour() * 5) + hour_offset;
  }

  if (mirror_hands) {
    hour_hand = 60 - hour_hand;
    minute_hand = 60 - minute_hand;
    second_hand = (60 - second());
    if (second_hand == 60) {
      second_hand = 0;
    }
    if (minute_hand == 60) {
      minute_hand = 0;
    }
    if (hour_hand == 60) {
      hour_hand = 0;
    }
  } else {
    second_hand = second();
  }

  if (second_hand != previous_second) {
    previous_second = second_hand;
    drawHands();
  }
}

I see no lines

Have you tried ChatGPT?

Maybe light up one LED above and one LED below and verify you are not beyond the HOURS array...

if (hour_hand > 0) // if the hour hand is ABOVE the bottom LED
  pixels.setPixelColor(hour_hand - 1, pixels.Color(63, 0, 0)); // 1/4 bright
pixels.setPixelColor(hour_hand, pixels.Color(255, 0, 0));
if (hour_hand < 12) // if the hour hand is BELOW the top LED
  pixels.setPixelColor(hour_hand + 1, pixels.Color(63, 0, 0)); // 1/4 bright

Hello "xfpd"! First of all, thank you for your great help. I think it's almost here: 2 LEDs lit up, the current LED (original sketch) and the previous LED, that is, it obeyed the following:

if (hour_hand > 0) // if the hour hand is ABOVE the bottom LED
    pixels.setPixelColor(hour_hand - 1, pixels.Color(255, 0, 0)); // 1/4 bright
  pixels.setPixelColor(hour_hand, pixels.Color(255, 0, 0));

It did not light up the next LED, from the 'If' below:

if (hour_hand < 12) // if the hour hand is BELOW the top LED
    pixels.setPixelColor(hour_hand + 1, pixels.Color(255, 0, 0)); // 1/4 bright

The +0 LED is probably over-writing the +1 LED. Make the colors of the +1 LED and the -1 LED different (like, red for +1, green for +0 and blue for -1). It will not show which color is being overwritten.

@xfpd
I don't think it's overwriting because there are 3 pixels in different places: LED1, LED2, LED3, for example. I need the hour LEDs to all be red, if possible. And, what's more, the 2 LEDs that are lighting up are also red: 255,0,0.

It is. Be sure to use pixels.display(); corrected in post #10

Change the colors of the +1 and -1 LED.

Use pixels.display(); instead of pixels.Color?

I changed the colors of LEDs +1 and -1 and 2 LEDs continue to light up in different colors; the third LED does not light up.

I was wrong... sorry... to "display the buffer" (first you color the buffer, then you display the buffer" use...

pixels.show();

No, it is overwritten.

Yes, it's already in the code:

void drawHands() {
  clearHands();

  // desenha os LEDs das horas, usando a cor vermelha
  if (hour_hand > 0) // if the hour hand is ABOVE the bottom LED
    pixels.setPixelColor(hour_hand - 1, pixels.Color(255, 0, 0)); // 1/4 bright
  pixels.setPixelColor(hour_hand, pixels.Color(255, 0, 0));
  if (hour_hand < 12) // if the hour hand is BELOW the top LED
    pixels.setPixelColor(hour_hand + 1, pixels.Color(255, 0, 0)); // 1/4 bright

  // desenha os LEDs dos minutos, usando a cor verde
  pixels2.setPixelColor(minute_hand, pixels.Color(0, 128, 0));

  // desenha os LEDs dos segundos, usando a cor azul intenso
  pixels2.setPixelColor(second_hand, pixels.Color(0, 0, 255));

  // mostra todos os LEDs - aqueles que definimos com uma cor que serão visíveis.
  pixels.show();
  pixels2.show();

Turning on 2 LEDs is already quite satisfactory, although I would like it to turn on 3 LEDs. You have already helped me a lot; if it doesn't work, leave it like that.

The reason you are not seeing +1, 0 and -1 is that either the +1 or -1 is being overwritten by the color black written to the other non-hour pixels. Try swapping the +1 and -1 see if the same color is blanked. Moving the "pixels(2).show()" might work.

I'm always doing what you advise me. I experimentally deleted "pixels2.show();" but it remains the same. Actually, "pixels2.show();" belongs to the second LED strip, which handles the Minutes/Seconds, separate from the Hour, which is the first strip, "pixels.show();".

I do not have all the devices you have, so I can't test on a board. Try to figure out which +1 or -1 works, and remove the non-working one in the code.

Ok, what doesn't work is the +1.
My devices: NeoPixel LED strip 60 LEDs/meter + ESP8266 NodeMCU. Thank you very much for your great help; although, partially but, you solved it.

I will not close the Topic yet, because maybe some more help will come; even from your side. Thanks again.

I think the > 0 and < 12 were the problem in my last suggestion. I have changed the "<" and ">" to "!=".... Try this...

  // desenha os LEDs das horas, usando a cor vermelha
  if (hour_hand != 0) // if the hour hand is NOT the bottom LED
    pixels.setPixelColor(hour_hand - 1, pixels.Color(255, 0, 0));

  pixels.setPixelColor(hour_hand, pixels.Color(255, 0, 0));

  if (hour_hand != 12) // if the hour hand is NOT the top LED
    pixels.setPixelColor(hour_hand + 1, pixels.Color(255, 0, 0));

Sorry Fabio; I hadn't noticed your message.
No, I didn't even know about ChatGPT. Thanks