Skip to content
Open
Show file tree
Hide file tree
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
11 changes: 5 additions & 6 deletions ADXL362.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
go to http://www.analog.com/ADXL362 for datasheet


License: CC BY-SA 3.0: Creative Commons Share-alike 3.0. Feel free
to use and abuse this code however you'd like. If you find it useful
please attribute, and SHARE-ALIKE!
License: GNU GPLv3 or later

Copyright 2012 Anne Mahaffey

Created June 2012
by Anne Mahaffey - hosted on http://annem.github.com/ADXL362
hosted on http://annem.github.com/ADXL362

*/

Expand Down Expand Up @@ -264,4 +263,4 @@ void ADXL362::SPIwriteTwoRegisters(byte regAddress, int twoRegValue){
SPI.transfer(twoRegValueL);
SPI.transfer(twoRegValueH);
digitalWrite(slaveSelectPin, HIGH);
}
}
13 changes: 6 additions & 7 deletions ADXL362.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
go to http://www.analog.com/ADXL362 for datasheet


License: CC BY-SA 3.0: Creative Commons Share-alike 3.0. Feel free
to use and abuse this code however you'd like. If you find it useful
please attribute, and SHARE-ALIKE!

Created June 2012
by Anne Mahaffey - hosted on http://annem.github.com/ADXL362
License: GNU GPLv3 or later

Copyright 2012 Anne Mahaffey

hosted on http://annem.github.com/ADXL362

*/

Expand Down Expand Up @@ -67,4 +66,4 @@ class ADXL362

};

#endif
#endif
2 changes: 2 additions & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Anne Mahaffey <anne.mahaffey@analog.com>
zachwick <zach@zachwick.com>
189 changes: 189 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ go to http://www.analog.com/ADXL362 for datasheet
Arduino will "go to sleep" when circuit has been motionless for
a short period of time. Arduino will "wake-up" when moved.

License: GNU GPLv3 or later

License: CC BY-SA 3.0: Creative Commons Share-alike 3.0. Feel free
to use and abuse this code however you'd like. If you find it useful
please attribute, and SHARE-ALIKE!

Created June 2012
by Anne Mahaffey - hosted on http://annem.github.com/ADXL362
Copyright 2012 Anne Mahaffey

Connect SCLK, MISO, MOSI, and CSB of ADXL362 to
SCLK, MISO, MOSI, and DP 10 of Arduino
Expand Down Expand Up @@ -141,4 +137,4 @@ void loop(){
//
void interruptFunction(){
Serial.println("\nArduino is Awake! \n");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@
3-axis accelerometer
go to http://www.analog.com/ADXL362 for datasheet


License: CC BY-SA 3.0: Creative Commons Share-alike 3.0. Feel free
to use and abuse this code however you'd like. If you find it useful
please attribute, and SHARE-ALIKE!

Created June 2012
by Anne Mahaffey - hosted on http://annem.github.com/ADXL362
License: GNU GPLv3 or later

Connect SCLK, MISO, MOSI, and CSB of ADXL362 to
SCLK, MISO, MOSI, and DP 10 of Arduino
(check http://arduino.cc/en/Reference/SPI for details)
Copyright 2012 Anne Mahaffey

Connect SCLK, MISO, MOSI, and CSB of ADXL362 to
SCLK, MISO, MOSI, and DP 10 of Arduino
(check http://arduino.cc/en/Reference/SPI for details)

*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
example from datasheet for Analog Devices ADXL362 - Micropower
3-axis accelerometer
go to http://www.analog.com/ADXL362 for datasheet


License: CC BY-SA 3.0: Creative Commons Share-alike 3.0. Feel free
to use and abuse this code however you'd like. If you find it useful
please attribute, and SHARE-ALIKE!

Created June 2012
by Anne Mahaffey - hosted on http://annem.github.com/ADXL362

Connect SCLK, MISO, MOSI, and CSB of ADXL362 to
SCLK, MISO, MOSI, and DP 10 of Arduino
(check http://arduino.cc/en/Reference/SPI for details)
License: GNU GPLv3 or later

Copyright 2012 Anne Mahaffey

Connect SCLK, MISO, MOSI, and CSB of ADXL362 to
SCLK, MISO, MOSI, and DP 10 of Arduino
(check http://arduino.cc/en/Reference/SPI for details)

*/

Expand Down
16 changes: 6 additions & 10 deletions examples/ADXL362_SimpleRead/ADXL362_SimpleRead.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
for Analog Devices ADXL362 - Micropower 3-axis accelerometer
go to http://www.analog.com/ADXL362 for datasheet


License: CC BY-SA 3.0: Creative Commons Share-alike 3.0. Feel free
to use and abuse this code however you'd like. If you find it useful
please attribute, and SHARE-ALIKE!

Created June 2012
by Anne Mahaffey - hosted on http://annem.github.com/ADXL362
License: GNU GPLv3 or later

Connect SCLK, MISO, MOSI, and CSB of ADXL362 to
SCLK, MISO, MOSI, and DP 10 of Arduino
(check http://arduino.cc/en/Reference/SPI for details)
Copyright 2012 Anne Mahaffey

Connect SCLK, MISO, MOSI, and CSB of ADXL362 to
SCLK, MISO, MOSI, and DP 10 of Arduino
(check http://arduino.cc/en/Reference/SPI for details)

*/

Expand Down
10 changes: 3 additions & 7 deletions examples/ADXL362_TiltOnOff/ADXL362_TiltOnOff.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ go to http://www.analog.com/ADXL362 for datasheet
Arduino will "go to sleep" when circuit is laid down flat on table.
Will "wake up" when circuit is tilted slightly.

License: GNU GPLv3 or later

License: CC BY-SA 3.0: Creative Commons Share-alike 3.0. Feel free
to use and abuse this code however you'd like. If you find it useful
please attribute, and SHARE-ALIKE!

Created June 2012
by Anne Mahaffey - hosted on http://annem.github.com/ADXL362
Copyright 2012 Anne Mahaffey

Connect SCLK, MISO, MOSI, and CSB of ADXL362 to
SCLK, MISO, MOSI, and DP 10 of Arduino
Expand Down Expand Up @@ -132,4 +128,4 @@ void loop(){
//
void interruptFunction(){
Serial.println("\nArduino is Awake! \n");
}
}