Changes between Version 1 and Version 2 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/CheckWIM
- Timestamp:
- 10/20/10 13:16:16 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/CheckWIM
v1 v2 12 12 == Return Value == 13 13 14 * Returns 14 * Returns number of weights recorded in buffer 15 15 16 16 == Remarks == … … 20 20 21 21 {{{ 22 23 extern int* pwim; 24 25 // Do WIM setup first ... 26 CSleep slp(1); 27 int i, x; 28 while(1) 29 { 30 slp.Pause(); 31 x = CheckWIM(1); 32 if(x > 0) 33 { 34 // Loop through WIM samples 35 for(i = 0; i < x; i++) 36 { 37 printf("weight %d\r\n", pwim[i]); 38 } 39 } 40 else if(CheckWtRcv(1)) // If below threshold 41 { 42 43 } 44 } 22 45 }}} 23 46