Here's the recipe:
Just plonk that thing down.
Methods (scanner is the wrapped peripheral):
data, title, pageCount = scanner.scan()The return value of scan() is a bit strange.
If there's no paper in the slot, it'll return nil.
title and pageCount are exactly what they look like.
If there is paper in the slot, the method will return a weird table for data.
It looks like this;
{ { line, color }, { line, color } ... } -- And so on and so forth.
Downloads
Spoiler
License:
The code is private.
I don't give a damn what you do with the binary, so long as people know it's my work.
That ought to be all; if I've left anything out, please tell me below!
Please, I can't emphasize enough how important bug reports and feature requests are.
Edited by Tiin57, 16 January 2014 - 07:37 PM.