Modified Makefile and test-potent.c for ICTPWSN

This commit is contained in:
Enric M. Calvo 2011-03-04 15:54:21 +01:00
parent ef706670e5
commit 07d921b08e
2 changed files with 7 additions and 6 deletions

View file

@ -3,7 +3,7 @@ TARGET=z1
endif
CONTIKI_PROJECT = test-phidgets blink test-adxl345 tmp102-test test-battery test-sht11 #test-potent
CONTIKI_SOURCEFILES += cc2420-arch.c sensors.c sht11.c
CONTIKI_SOURCEFILES += cc2420-arch.c sensors.c sht11.c potentiometer-sensor.c
PROJECT_SOURCEFILES = i2cmaster.c tmp102.c adxl345.c battery-sensor.c sky-sensors.c #potentiometer-sensor.c
APPS=serial-shell

View file

@ -5,7 +5,7 @@
/*---------------------------------------------------------------------------*/
PROCESS(aplicacio, "Aplicacio de prova");
PROCESS(aplicacio, "Testing Potentiometer");
AUTOSTART_PROCESSES(&aplicacio);
/*---------------------------------------------------------------------------*/
PROCESS_THREAD(aplicacio, ev, data)
@ -13,13 +13,14 @@ PROCESS_THREAD(aplicacio, ev, data)
PROCESS_BEGIN();
SENSORS_ACTIVATE(potentiometer_sensor);
// INSERT LINE HERE TO ENABLE POTENTIOMETER
while (1)
{
uint16_t v = potentiometer_sensor.value(0);
uint16_t value
//INSERT LINE HERE TO READ POTENTIOMETER VALUE
printf("Potentiometer Value: %i\n", v);
}