Skip to content

Commit

Permalink
Updated BMI270 sensor API and added the variants. Added more examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
BST-Github-Admin authored and kegov committed Dec 1, 2020
1 parent c535fbe commit 77e0945
Show file tree
Hide file tree
Showing 148 changed files with 36,331 additions and 18,084 deletions.
10 changes: 5 additions & 5 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Expand Down
8 changes: 3 additions & 5 deletions OIS_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- User has to include _bmi2_ois.h_ in the code to call OIS related APIs and a _variant header_ for initialization as
well as BMI2 related API calls, as shown below:
``` c
#include "bmi261.h"
#include "bmi270.h"
#include "bmi2_ois.h"
````
### Driver files information<a name=file></a>
Expand Down Expand Up @@ -86,7 +86,7 @@ if (rslt != BMI2_OK) {
}

/* Enable accelerometer and gyroscope through host interface */
rslt = bmi2_sensor_enable(sens_list, 2, &dev);
rslt = bmi270_sensor_enable(sens_list, 2, &dev);
if (rslt != BMI2_OK) {
printf("Error: %d\n", rslt);
return;
Expand Down Expand Up @@ -167,6 +167,4 @@ if (rslt != BMI2_OK) {
printf("Error: %d\n", rslt);
return;
}
```

```
Loading

0 comments on commit 77e0945

Please sign in to comment.