HacroCam - recalculate to greyscale before sending (processing example)

@Hacrocam users

Attached you find an updated arduino library, the arduhub sketch and an updated processing example for the Hacrocam.
The update allows to convert the image to 8bit grayscale before submitting it via serial link. This halves the time required for the transfer. Great for low baud rate serial links.
In addition you can take more than one picture without restarting the sketch. Press w to take a picture.

The processing example has an added user definable variable g_grayscaleImage to enable/disable grayscale convertion.

Many thanks @robtillaart who solved the hard part. I just put together the puzzle pieces and extended the library and sketches.

Trying to extend it with a 4bit grayscale option now.

Robert

Hacrocam_8bit_option.zip (19.5 KB)