[Tinyos-2-commits] CVS: tinyos-2.x/apps/Sense SenseC.nc, 1.1.2.3,
1.1.2.4
Jan-Hinrich Hauer
janhauer at users.sourceforge.net
Mon Oct 30 07:52:37 PST 2006
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/msp430/adc12 AdcP.nc,
1.1.2.2, 1.1.2.3
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/eyesIFX/sensors
DemoSensorC.nc, 1.1.2.7, 1.1.2.8 DemoSensorNowC.nc, 1.1.2.4,
1.1.2.5 DemoSensorStreamC.nc, 1.1.2.3,
1.1.2.4 ReadNowShiftC.nc, 1.1.2.1, NONE ReadShiftC.nc, 1.1.2.1,
NONE ReadStreamShiftC.nc, 1.1.2.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/apps/Sense
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv11340/apps/Sense
Modified Files:
Tag: tinyos-2_0_devel-BRANCH
SenseC.nc
Log Message:
Now displays the three least significant bits on the LEDs as described in tutorial 5 and the README.txt (Read[Now|Stream] return uninterpreted values, not shifted).
Index: SenseC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/Sense/SenseC.nc,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -d -r1.1.2.3 -r1.1.2.4
*** SenseC.nc 1 Jul 2006 18:10:50 -0000 1.1.2.3
--- SenseC.nc 30 Oct 2006 15:52:35 -0000 1.1.2.4
***************
*** 56,60 ****
implementation
{
! // sampling frequency in milliseconds
#define SAMPLING_FREQUENCY 100
--- 56,60 ----
implementation
{
! // sampling frequency in binary milliseconds
#define SAMPLING_FREQUENCY 100
***************
*** 71,83 ****
{
if (result == SUCCESS){
! if (data & 0x8000)
call Leds.led2On();
else
call Leds.led2Off();
! if (data & 0x4000)
call Leds.led1On();
else
call Leds.led1Off();
! if (data & 0x2000)
call Leds.led0On();
else
--- 71,83 ----
{
if (result == SUCCESS){
! if (data & 0x0004)
call Leds.led2On();
else
call Leds.led2Off();
! if (data & 0x0002)
call Leds.led1On();
else
call Leds.led1Off();
! if (data & 0x0001)
call Leds.led0On();
else
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/msp430/adc12 AdcP.nc,
1.1.2.2, 1.1.2.3
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/eyesIFX/sensors
DemoSensorC.nc, 1.1.2.7, 1.1.2.8 DemoSensorNowC.nc, 1.1.2.4,
1.1.2.5 DemoSensorStreamC.nc, 1.1.2.3,
1.1.2.4 ReadNowShiftC.nc, 1.1.2.1, NONE ReadShiftC.nc, 1.1.2.1,
NONE ReadStreamShiftC.nc, 1.1.2.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list