Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 1:510ee396d140, committed 2017-05-06
- Comitter:
- sog_yang
- Date:
- Sat May 06 00:56:47 2017 +0000
- Parent:
- 0:aa97de8e628a
- Child:
- 2:447946334c29
- Commit message:
- Add API Documents.
Changed in this revision
| AS7000.cpp | Show annotated file Show diff for this revision Revisions of this file |
| AS7000.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/AS7000.cpp Sun Apr 23 01:04:47 2017 +0000
+++ b/AS7000.cpp Sat May 06 00:56:47 2017 +0000
@@ -7,7 +7,7 @@
AS7000::AS7000(PinName SDA, PinName SCL) : _i2c(SDA,SCL){
//Set I2C fast and bring reset line high
- _i2c.frequency(100000);
+ _i2c.frequency(400000);
address = AS7000Address;
AS7000_INT.mode(PullNone);
@@ -52,10 +52,4 @@
wait_ms(10);
update();
}
- printf("*HR=%03d#", hrm.hreat_rate);
- //printf("\n");
- //printf("transaction_id:=%03d# status:=%03d# hreat_rate:=%03d#", hrm.transaction_id,hrm.status,hrm.hreat_rate);
- //printf("signal_QA:=%03d# LED_current:=%6.2f# SYNC:=%03d#", hrm.signal_QA,hrm.LED_current,hrm.SYNC);
}
-
-
--- a/AS7000.h Sun Apr 23 01:04:47 2017 +0000
+++ b/AS7000.h Sat May 06 00:56:47 2017 +0000
@@ -2,7 +2,6 @@
#define AS7000_H
#include "mbed.h"
-//
#define AS7000Address 0x60
//Register definitions
#define AS7000_STARTUP 0x04 //4
@@ -25,12 +24,12 @@
-/** Class for operating Bosch BNO055 sensor over I2C **/
+/** Class for operating AMS AS7000 sensor over I2C **/
class AS7000
{
public:
-/** Create BNO055 instance **/
+/** Create AS7000 instance **/
AS7000(PinName SDA, PinName SCL);
void gpio_init(void);