Possible to dim screen via code?

I run a softconsole app that does not use X. As such it directly controls the screen and has its own touchhandler. The program is trying to write values for screen dimming but coming up with errors. Does this screen have screen dimming ability?

Which screen? Link please.

Pimoroni Hyperpixel 4.0"

I don’t see it mentioned on the product page

But I see a backlight control pin listed on the pinout page. That may just be on off though?

Best I can do for you as I don’t have one.

I don’t have one either, but as far as I can tell gpio 19 controls the backlight and this is on/off only rather than dimming. From source:

    rpi_backlight: rpi_backlight {
        compatible = "gpio-backlight";
        gpios = <&gpio 19 0>;
        default-on;
    };