Hannah code?

Anybody written code for the RGB light sensor? It must be so easy that no one has bothered to do it? Just a couple lines? The same from Hannah v2 to v3? It’s been around for years now…

There is a good tutorial and code for Arduino at http://bildr.org/2012/01/adjd-s311_arduino/ but I haven’t had time to port it over to Squirrel…

That looks like some nice code, many features like calibrating and turning off the LED. How about something really simple to detect brightness? Nobody has done this yet?

It’s only a few lines of code since we only need 2 functions init() and read().