Browse Source

gy65: add more doc and default constructor settings

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll 10 years ago
parent
commit
93a8603686
2 changed files with 7 additions and 3 deletions
  1. BIN
      docs/images/bmp085.jpeg
  2. 7
    3
      src/gy65/gy65.h

BIN
docs/images/bmp085.jpeg View File


+ 7
- 3
src/gy65/gy65.h View File

61
 namespace upm {
61
 namespace upm {
62
 
62
 
63
 /**
63
 /**
64
- * @brief C++ API for GY65 chip (Atmospheric Pressure Sensor)
64
+ * @brief C++ API for GY65/BMP085 chip (Atmospheric Pressure Sensor)
65
  *
65
  *
66
- * This file defines the gy65 C++ interface for libgy65
66
+ * The Bosch [BMP085]
67
+ * (https://www.sparkfun.com/datasheets/Components/General/BST-BMP085-DS000-05.pdf)
68
+ * is a high precision, ultra-low power consumption pressure sensor. It has a
69
+ * range of between 30,000 and 110,000 Pa.
67
  *
70
  *
68
  * @snippet gy65.cxx Interesting
71
  * @snippet gy65.cxx Interesting
72
+ * @image html bmp085.jpeg
69
  */
73
  */
70
 class GY65 {
74
 class GY65 {
71
     public:
75
     public:
76
          * @param devAddr address of used i2c device
80
          * @param devAddr address of used i2c device
77
          * @param mode BMP085 mode
81
          * @param mode BMP085 mode
78
          */
82
          */
79
-        GY65 (int bus, int devAddr, uint8_t mode = BMP085_ULTRAHIGHRES);
83
+        GY65 (int bus, int devAddr=0x77, uint8_t mode=BMP085_ULTRAHIGHRES);
80
 
84
 
81
         /**
85
         /**
82
          * GY65 object destructor, basicaly it close i2c connection.
86
          * GY65 object destructor, basicaly it close i2c connection.