-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed issues with accelerometer offset * New examples (#11) * Create bandwidthExample.ino * Create motionInterrupt.ino * Create offsetCancellation.ino * Update .travis.yml * Code style corrections (#12) * Update MPU9255.cpp * Update MPU9255.h * Update MPU9255_PowerControl.cpp * Update MPU9255_Interrupts.cpp * Update MPU9255_Data.cpp * Update MPU9255_Communication.cpp * Update bandwidthExample.ino * Update dataProcessing.ino * Update motionInterrupt.ino * Update offsetCancellation.ino * Update powerControl.ino * Update rawData.ino * Update scaleExample.ino * Update sleepExample.ino * Fixed magnetometer issues * Doc update (#13) * Update library.properties * Rename doc.md to doc/doc.md * Rename doc.md to main.md * Rename main.md to index.md * Update README.md * Create settings.md * Create measurements.md * Create power.md * Create interrupts.md * Update index.md * Update index.md * Update settings.md * Update power.md * Update measurements.md * Update interrupts.md * small typo fix
- Loading branch information
Showing
23 changed files
with
1,112 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
### Welcome to MPU9255 arduino library documentation | ||
|
||
### Index : | ||
|
||
### Settings | ||
|
||
https://github.com/Bill2462/MPU9255-Arduino-Library/blob/master/doc/settings.md | ||
|
||
### Measurements | ||
|
||
https://github.com/Bill2462/MPU9255-Arduino-Library/blob/master/doc/measurements.md | ||
|
||
### Power control | ||
|
||
https://github.com/Bill2462/MPU9255-Arduino-Library/blob/master/doc/power.md | ||
|
||
### Interrupts | ||
|
||
https://github.com/Bill2462/MPU9255-Arduino-Library/blob/master/doc/interrupts.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# Interrupts | ||
|
||
|
||
## General interrupt configuration | ||
|
||
`void set_INT_active_state(interrupt_pin selected_mode)` | ||
|
||
Set INT pin (MPU9255 interrupt output pin) active state. | ||
|
||
- Parameters: | ||
- `interrupt_pin selected_mode` - Selected active state. | ||
- Returns: None | ||
|
||
Valid values of selected active state parameter: | ||
- `active_low` - Pin will go low when interrupt is detected. | ||
- `active_high` - Pin will go high when interrupt is detected. | ||
|
||
-------------- | ||
|
||
`void set_INT_pin_mode(interrupt_pin selected_mode)` | ||
|
||
Set INT pin operation mode. | ||
|
||
- Parameters: | ||
- `interrupt_pin selected_mode` - Selected mode. | ||
- Returns: None | ||
|
||
Valid pin modes: | ||
- `open_drain` - Pin will operate in open-drain mode (external pullup resistor is required). | ||
- `push_pull` - Pin will operate in push-pull mode (no external components required). | ||
|
||
-------------- | ||
|
||
`void set_INT_signal_mode(interrupt_pin selected_mode)` | ||
|
||
Set INT pin output signal mode. | ||
|
||
- Parameters: | ||
- `interrupt_pin selected_mode` - Selected output signal mode. | ||
- Returns: None | ||
|
||
Valid output signal modes: | ||
- `latched_output` - When interrupt is detected, pin will go into active state until interrupt flag is cleared. | ||
- `pulse_output` - When interrupt is detected, pin will generate short pulse. | ||
|
||
----------------------- | ||
|
||
`void enable_interrupt_output(interrupts selected_interrupt)` | ||
|
||
Enable selected interrupt to propagate to interrupt pin. | ||
|
||
- Parameters: | ||
- `interrupts selected_interrupt` - Selected interrupt. | ||
- Returns: None | ||
|
||
Valid vales of Selected interrupt parameter : | ||
- `motion_interrupt` - motion interrupt | ||
- `FIFO_overflow_interrupt` - FIFO overflow | ||
- `Fsync_interrupt` - Fsync interrupt | ||
- `raw_rdy_interrupt` - raw_rdy interrupt | ||
|
||
------------------ | ||
|
||
`void disable_interrupt_output(interrupts selected_interrupt)` | ||
|
||
Prevent selected interrupt from propagating to interrupt pin. | ||
|
||
- Parameters: | ||
- `interrupts selected_interrupt` - Selected interrupt. | ||
- Returns: None | ||
|
||
Valid vales of Selected interrupt parameter : | ||
- `motion_interrupt` - motion interrupt | ||
- `FIFO_overflow_interrupt` - FIFO overflow | ||
- `Fsync_interrupt` - Fsync interrupt | ||
- `raw_rdy_interrupt` - raw_rdy interrupt | ||
|
||
-------------------- | ||
|
||
`void clear_interrupt()` | ||
|
||
Clear interrupt flags. | ||
|
||
- Parameters: None | ||
- Returns: None | ||
|
||
------------------- | ||
|
||
## Motion interrupt | ||
|
||
`void set_motion_threshold_level(uint8_t threshold)` | ||
|
||
Set motion interrupt threshold level. | ||
|
||
- Parameters: | ||
- `uint8_t threshold` -Tthreshold value of shock that will cause an interrupt.( 4mg per LSB). | ||
- Returns: None | ||
|
||
`void enable_motion_interrupt()` | ||
|
||
Enable motion interrupt. | ||
|
||
- Parameters: None | ||
- Returns: None | ||
|
||
------------------ | ||
|
||
`void disable_motion_interrput()` | ||
|
||
Disable motion interrupt. | ||
|
||
- Parameters: None | ||
- Returns: None |
Oops, something went wrong.