Hello all,
I am running into trouble while trying to use the light sensor on
the MTS400 sensor board.I am using Micaz motes and MIB520 programming
board. Does anyone have some example code on how to take a light
measurement on the mts400 sensor board? I am attempting to use the
TaosPhoto component that comes with the mts400, but I get the following
error:
In component `MyApp':
MyApp.nc:46: no match
make: *** [exe0] Error 1
My MyApp.nc file looks like this:
#include "appFeatures.h"
includes SensorboardApp;
configuration MyApp {
}
implementation {
components Main, MyAppM, TimerC, LedsC, GenericComm,TaosPhoto;
Main.StdControl->MyAppM.StdControl;
Main.StdControl->TimerC.StdControl;
Main.StdControl->GenericComm.Control;
MyAppM.Timer->TimerC.Timer[unique("Timer")];
MyAppM.Leds->LedsC.Leds;
MyAppM.SendMsg->GenericComm.SendMsg[AM_XSXMSG];
MyAppM.PhotoControl->TaosPhoto.SplitControl;
MyAppM.Light->TaosPhoto.ADC[0];
MyAppM.Light->TaosPhoto.ADC[1];
}
And the first part of my MyAppM.nc file is:
module MyAppM {
provides {
interface StdControl;
}
uses {
interface Timer;
interface Leds;
interface SendMsg;
interface StdControl as PhotoControl;
interface ADC as Light;
}
}
Thanks in advance.
--
G.Dhivya
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help