Advertisement
Guest User

Untitled

a guest
Nov 17th, 2011
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. diff --git a/processing-dynamic-view/data b/processing-dynamic-view/data
  2. deleted file mode 100644
  3. index 13de30f..0000000
  4. --- a/processing-dynamic-view/data
  5. +++ /dev/null
  6. @@ -1 +0,0 @@
  7. -3000
  8. diff --git a/processing-dynamic-view/data b/processing-dynamic-view/data
  9. new file mode 120000
  10. index 0000000..f6a2c55
  11. --- /dev/null
  12. +++ b/processing-dynamic-view/data
  13. @@ -0,0 +1 @@
  14. +/sys/bus/i2c/drivers/bmp085/3-0077/pressure0_input
  15. \ No newline at end of file
  16. diff --git a/processing-dynamic-view/index.html b/processing-dynamic-view/index.html
  17. index f896d75..1f94591 100644
  18. --- a/processing-dynamic-view/index.html
  19. +++ b/processing-dynamic-view/index.html
  20. @@ -78,8 +78,8 @@ socket.on('rangeHigh', function(rangeLow) {
  21. window.scaleY = window.height / (window.rangeHigh - window.rangeLow);
  22. });
  23. socket.on('data', function(data) {
  24. - document.getElementById("output").innerHTML=""+data;
  25. - var myData = parseFloat(data);
  26. + document.getElementById("output").innerHTML=""+parseFloat(data)/100;
  27. + var myData = parseFloat(data) / 100;
  28. for(var i=0; i<graphDataSize-1; i++) {
  29. window.graphData[i] = window.graphData[i+1];
  30. }
  31. diff --git a/processing-dynamic-view/rangeHigh b/processing-dynamic-view/rangeHigh
  32. index 5caff40..d878b32 100644
  33. --- a/processing-dynamic-view/rangeHigh
  34. +++ b/processing-dynamic-view/rangeHigh
  35. @@ -1 +1 @@
  36. -10000
  37. +1100
  38. diff --git a/processing-dynamic-view/rangeLow b/processing-dynamic-view/rangeLow
  39. index f599e28..4b02a19 100644
  40. --- a/processing-dynamic-view/rangeLow
  41. +++ b/processing-dynamic-view/rangeLow
  42. @@ -1 +1 @@
  43. -10
  44. +900
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement