digitalWrite(pin, value)
Write a HIGH or a LOW value to a digital pin.
If the pin has been configured as an OUTPUT with pinMode(), its voltage will be set to the corresponding value: 5V (or 3.3V on 3.3V boards) for HIGH, 0V (ground) for LOW.
Reference: https://www.arduino.cc/reference/en/language/functions/digital-io/digitalwrite/