Ignore:
Timestamp:
Apr 30, 2016, 11:29:25 PM (8 years ago)
Author:
ertl-honda
Message:

1.7.10のファイルに更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtos_arduino/trunk/arduino_lib/libraries/LuckyShield/src/lib/MAG3110.h

    r175 r224  
    2525{
    2626  public:
    27     MAG3110();
     27    //constructor
     28    //MAG3110();
     29   
     30    //public methods
    2831    void begin();
    29     int readx();
    30     int ready();
    31     int readz();
    32        
    33         int x(){return readx();};
    34         int y(){return ready();};
    35         int z(){return readz();};
     32    void read();
     33    int x(){return mag_x;};
     34    int y(){return mag_y;};
     35    int z(){return mag_z;};
     36
    3637  private:
     38    //class-only methods:
     39    int read16Data(byte MSB, byte LSB);
     40   
     41    //global variables
     42    int mag_x;
     43    int mag_y;
     44    int mag_z;
     45   
    3746};
    3847
Note: See TracChangeset for help on using the changeset viewer.