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.
Dependencies: AD7798
For additional information check out the mbed page of the Analog Devices wiki: https://wiki.analog.com/resources/tools-software/mbed-drivers-all
Diff: CN0397.cpp
- Revision:
- 1:77eb0888c15a
- Parent:
- 0:61b289f9bab0
--- a/CN0397.cpp Mon Nov 07 15:57:44 2016 +0000
+++ b/CN0397.cpp Tue Nov 08 09:56:25 2016 +0000
@@ -61,10 +61,15 @@
while (pc.readable()) pc.getc();
}
+const uint8_t CN0397::Channels[3] = { 1, 0, 2};
+const char CN0397::colour[3][6] = { "RED", "GREEN", "BLUE" };
+const uint8_t CN0397::ColorPrint[3] = { 31, 32, 34 };
+const uint8_t CN0397::Gain[8] = { 1, 2, 4, 8, 16, 32, 64, 128};
+const float CN0397::Lux_LSB[3] = {2.122, 2.124, 2.113};
+const float CN0397::Optimal_Levels[3] = {26909.0, 8880.0, 26909.0};
CN0397::CN0397(PinName cs) : ad7798(cs)
-{
-
+{
}
void CN0397::display_data(void)
{