| 数据搜索系统,热门电子元器件搜索 |
|
SEN0224 数据表(PDF) 5 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
SEN0224 数据表(HTML) 5 Page - DFROBOT |
|
5 / 6 page ![]() // Ga: LIS2DH12_RANGE_16GA while(LIS.init(LIS2DH12_RANGE_16GA) == -1){ //Equipment connection excepti on or I2C address error Serial.println("No I2C devices found"); delay(1000); } } void loop(){ acceleration(); } /*! * @brief Print the position result. */ void acceleration(void) { int16_t x, y, z; delay(100); LIS.readXYZ(x, y, z); LIS.mgScale(x, y, z); Serial.print("Acceleration x: "); //print acceleration Serial.print(x); Serial.print(" mg \ty: "); Serial.print(y); Serial.print(" mg \tz: "); Serial.print(z); Serial.println(" mg"); } Expected Results Open the Serial monitor, you'll get the following data. |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |