Rohm optical pulse wave sensor bh1790glc hello world. Printing values of wave to serial.
Dependencies: RegisterWriter rohm-bh1790glc-driver
Fork of kionix-kx123-hello by
Revision 4:50eff3af63c7, committed 2017-11-29
- Comitter:
- MikkoZ
- Date:
- Wed Nov 29 11:45:27 2017 +0000
- Parent:
- 3:76f82d0d3c8a
- Commit message:
- Changed data output print to tabbed + pulse graph; ; You can read the pulse from pulse graph if you train your eye a little bit and have good contact with the sensor.
Changed in this revision
diff -r 76f82d0d3c8a -r 50eff3af63c7 main.cpp --- a/main.cpp Fri Jun 16 11:59:58 2017 +0000 +++ b/main.cpp Wed Nov 29 11:45:27 2017 +0000 @@ -69,8 +69,12 @@ if (interval_elapsed) { //Wait until ISR error = bh1790glc.getresults(data); if (!error) { - pc.printf("%d, %d\r\n", data[1], data[0]); - //pc.printf("STX,%d,ETX\r\n",data[1]); //for lazurite graph + int i; + pc.printf("%d, \t%d", data[1], data[0]); + for (i=0; i < (data[1]/200); i++) { + pc.printf(" "); + } + pc.printf("I\r\n"); } interval_elapsed = false; }
diff -r 76f82d0d3c8a -r 50eff3af63c7 mbed-os.lib --- a/mbed-os.lib Fri Jun 16 11:59:58 2017 +0000 +++ b/mbed-os.lib Wed Nov 29 11:45:27 2017 +0000 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#21dd7008a1540c02150f1b87c12294301db979bb +https://github.com/ARMmbed/mbed-os/#fc1836545dcc2fc86f03b01292b62bf2089f67c3
diff -r 76f82d0d3c8a -r 50eff3af63c7 rohm-bh1790glc-driver.lib --- a/rohm-bh1790glc-driver.lib Fri Jun 16 11:59:58 2017 +0000 +++ b/rohm-bh1790glc-driver.lib Wed Nov 29 11:45:27 2017 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/Rohm/code/rohm-bh1790glc-driver/#32bb2624bed8 +https://developer.mbed.org/teams/Rohm/code/rohm-bh1790glc-driver/#4446bf1de21b