Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
lidar_lite.h
00001 #ifndef LIDARLite_h 00002 #define LIDARLite_h 00003 00004 #include <mbed.h> 00005 00006 /*このライブラリは、Arduinoのlidar lite v3ライブラリを移植したものです。 00007 *I2C i2c(PB_4,PA_7); 00008 *LIDARLite lidar_x(i2c); 00009 *I2Cのクラスオブジェクトをあらかじめ作り、参照渡ししてください。 00010 */ 00011 00012 const char LIDARLITE_ADDR_DEFAULT = 0x62 << 1; 00013 00014 class LIDARLite 00015 { 00016 public: 00017 LIDARLite(I2C &i2c); 00018 void begin(int = 0, char = LIDARLITE_ADDR_DEFAULT); 00019 void configure(int = 0, char = LIDARLITE_ADDR_DEFAULT); 00020 void setI2Caddr(char, bool, char = LIDARLITE_ADDR_DEFAULT); 00021 void reset(char = LIDARLITE_ADDR_DEFAULT); 00022 int distance(bool = true, char = LIDARLITE_ADDR_DEFAULT); 00023 void write(char, char, char = LIDARLITE_ADDR_DEFAULT); 00024 void read(char, int, char*, bool, char ); 00025 void correlationRecordToSerial(char = '\n', int = 256, char = LIDARLITE_ADDR_DEFAULT); 00026 private: 00027 I2C &i2c_; 00028 }; 00029 00030 #endif
Generated on Sat Oct 15 2022 07:52:33 by
1.7.2