Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Arduino/BMA250.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
// https://www.controleverything.com/content/Accelorometer?sku=BMA250_I2CS#tabs-0-product_tabset-2

#include <Wire.h>
//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()
Expand Down Expand Up @@ -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)
Expand Down