From b135aa6eddffac9f13fd4116083eb2ee327406fb Mon Sep 17 00:00:00 2001 From: Engi23 Date: Thu, 1 Apr 2021 17:28:32 +0400 Subject: [PATCH] Update BMA250.ino Incorrect type declaration. Supplement. The sensor can be with the address 0x19 --- Arduino/BMA250.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Arduino/BMA250.ino b/Arduino/BMA250.ino index 9f8585c..b81ffa7 100755 --- a/Arduino/BMA250.ino +++ b/Arduino/BMA250.ino @@ -5,8 +5,10 @@ // https://www.controleverything.com/content/Accelorometer?sku=BMA250_I2CS#tabs-0-product_tabset-2 #include +//Analog port 4 (A4) = SDA (serial data) +//Analog port 5 (A5) = SCL (serial clock) +// BMA250 I2C address is 0x18(24) or 0x19(25) -// BMA250 I2C address is 0x18(24) #define Addr 0x18 void setup() @@ -38,7 +40,7 @@ void setup() void loop() { - unsigned int data[0]; + uint8_t data[6]; //correct type declaration // Start I2C Transmission Wire.beginTransmission(Addr); // Select Data Registers (0x02 − 0x07)