I have been trying to get the output from the fir.snapshot() to be grayscale but that does not seem to work, and gives me the error:
AttributeError: ‘module’ object has no attribute ‘PIXFORMAT_GRAYSCALE’ when running:
img = fir.snapshot(x_size = w, y_size = h, hint = drawing_hint, copy_to_fb = True, hmirror = False, vflip = True, pixformat=fir.PIXFORMAT_GRAYSCALE, scale = [27, 50]).
It gives me the same error even trying to use fir.PIXFORMAT_RGB565, which is the default I believe.
Any help on how to get the grayscale image out instead of a colour image would be amazing. Thanks so much for your help!