Pinoccio / library-pinoccio

Arduino library for Pinoccio
Other
28 stars 24 forks source link

More Modules #171

Closed quartzjer closed 10 years ago

quartzjer commented 10 years ago

In progress, copying in and updating the previous modules!

Here's what builds right now:

> module.status
enabled   name
--------------
yes       wifi
no        flash
no        hello
no        motion
no        pixels
no        servo

These all need testing yet, but is feeling like a really good pattern still overall.

jacobrosenthal commented 10 years ago

You can't modules.enable on startup. Havent been able to look into why yet

amcjen commented 10 years ago

It's working for me. Maybe b/c of plural?

function startup { module.enable("env"); };
jacobrosenthal commented 10 years ago

pretty sure that was a typo here, and not there because I verified by running my startup function successfully.. But now I can't recreate soooo.. Disregard for now ;) When do you plan to merge? Loving modules and specifically having timer upstream

jacobrosenthal commented 10 years ago

Ok. reproducing now. Maybe just my misunderstanding of startup function? Basically if I have any other pin startup (ie a pinsave) like:

function startup.a0 { pin.setmode("a0", output); };

Then this startup doesnt get called..

function startup {module.enable("servo");};
jingman commented 10 years ago

@jacobrosenthal I see this too. Filed #190

quartzjer commented 10 years ago

I think it's time to all work from master again! :)