Rohm BH1745 red-green-blue-clear -color sensor hello world. Uses Rohm sensor hal for i2c commands and rohm-bh1745 -driver for sensor specific commands.
Dependencies: mbed rohm-bh1745 rohm-sensor-hal
Fork of rohm-rpr0521-hello by
Diff: main.cpp
- Revision:
- 2:edc916d1a86d
- Parent:
- 1:a531b03fca97
- Child:
- 3:e22f64655c63
--- a/main.cpp Wed Dec 30 16:18:11 2015 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-
-#include "mbed.h"
-#include "KX022.h"
-
-Serial pc(USBTX, USBRX);
-KX022 acc(I2C_SDA, I2C_SCL);
-
-int main() {
- pc.printf("\nKX022 Accelerometer library test program.\n");
-
- while(1) {
- wait(0.5);
- pc.printf("x=%7.4f, y=%7.4f, z=%7.4f\n", acc.getAccX(), acc.getAccY(), acc.getAccZ());
- }
-}

Rohm BH1745NUC | RGB Color Sensor