Very advanced Click Air Quality example for Hexiwear featuring OLED Display, Bluetooth, Cloud and Touch

Dependencies:   Hexi_KW40Z Hexi_OLED_SSD1351

This project has been developed by mbed user daveyclk

This project demonstrates the use of the Mikroelektronika Click Air Quality module with hexiwear featuring the OLED display, the Bluetooth for Cloud connectivity and Touch buttons

Plug Hexiwear into the Docking Station and the Air Quality Click to the Click Socket 1
Connect the USB cable to your computer and to the micro-USB port of the Docking Station

Compile the project and copy the binary "Hexi_Click_AirQuality_Example_HEXIWEAR.bin" in the DAP-LINK drive from your computer file explorer
Press the K64F-RESET button on the docking station to start the program on your board

The OLED screen will display some graphics and the Air Quality measurement in ppm below
Blow gently on the sensor and see the value changing
Graphic displayed will move the Arrow from Green to Purple depending from the ppm value measured by the Air Quality sensor
Download the cell phone App Hexiwear from iOS or Android stores to connect your board to your phone
Type the pin displayed on the screen and give a name to your board to pair it via the App
Congratulation your data are now streamed directly to Wolkabout Cloud...
To visualize the data remotely (over cloud not bluetooth), you can go to Wolksense.com or download the Wolksense iOS/Android App and login with same account

Committer:
daveyclk
Date:
Mon Oct 24 15:14:39 2016 +0000
Revision:
2:8e7d89c2cbde
Updated the GUI, now has an Air Quality Meter that uses an arrow to point to it. PPM values still show. The Air Quality Click needs to be modified to run at 3V3 levels. Set test = true to see the images

Who changed what in which revision?

UserRevisionLine numberNew contents of line
daveyclk 2:8e7d89c2cbde 1 /* Hexiwear NXP Bitmap Images
daveyclk 2:8e7d89c2cbde 2 * This file contains the bitmaps for the full screen (96 by 96 pixels) NXP logo
daveyclk 2:8e7d89c2cbde 3 * and a smaller 96 by 32 pixels NXP logo.
daveyclk 2:8e7d89c2cbde 4 *
daveyclk 2:8e7d89c2cbde 5 * Redistribution and use in source and binary forms, with or without modification,
daveyclk 2:8e7d89c2cbde 6 * are permitted provided that the following conditions are met:
daveyclk 2:8e7d89c2cbde 7 *
daveyclk 2:8e7d89c2cbde 8 * Redistributions of source code must retain the above copyright notice, this list
daveyclk 2:8e7d89c2cbde 9 * of conditions and the following disclaimer.
daveyclk 2:8e7d89c2cbde 10 *
daveyclk 2:8e7d89c2cbde 11 * Redistributions in binary form must reproduce the above copyright notice, this
daveyclk 2:8e7d89c2cbde 12 * list of conditions and the following disclaimer in the documentation and/or
daveyclk 2:8e7d89c2cbde 13 * other materials provided with the distribution.
daveyclk 2:8e7d89c2cbde 14 *
daveyclk 2:8e7d89c2cbde 15 * Neither the name of NXP, nor the names of its
daveyclk 2:8e7d89c2cbde 16 * contributors may be used to endorse or promote products derived from this
daveyclk 2:8e7d89c2cbde 17 * software without specific prior written permission.
daveyclk 2:8e7d89c2cbde 18 *
daveyclk 2:8e7d89c2cbde 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
daveyclk 2:8e7d89c2cbde 20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
daveyclk 2:8e7d89c2cbde 21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
daveyclk 2:8e7d89c2cbde 22 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
daveyclk 2:8e7d89c2cbde 23 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
daveyclk 2:8e7d89c2cbde 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
daveyclk 2:8e7d89c2cbde 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
daveyclk 2:8e7d89c2cbde 26 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
daveyclk 2:8e7d89c2cbde 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
daveyclk 2:8e7d89c2cbde 28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
daveyclk 2:8e7d89c2cbde 29 *
daveyclk 2:8e7d89c2cbde 30 * visit: http://www.mikroe.com and http://www.nxp.com
daveyclk 2:8e7d89c2cbde 31 *
daveyclk 2:8e7d89c2cbde 32 * get support at: http://www.mikroe.com/forum and https://community.nxp.com
daveyclk 2:8e7d89c2cbde 33 *
daveyclk 2:8e7d89c2cbde 34 * Project HEXIWEAR, 2015
daveyclk 2:8e7d89c2cbde 35 */
daveyclk 2:8e7d89c2cbde 36
daveyclk 2:8e7d89c2cbde 37
daveyclk 2:8e7d89c2cbde 38 #include "stdint.h"
daveyclk 2:8e7d89c2cbde 39
daveyclk 2:8e7d89c2cbde 40 extern const uint8_t Green_arrow_bmp[];
daveyclk 2:8e7d89c2cbde 41 extern const uint8_t Orange_arrow_bmp[];
daveyclk 2:8e7d89c2cbde 42 extern const uint8_t Purple_arrow_bmp[];
daveyclk 2:8e7d89c2cbde 43 extern const uint8_t Red_arrow_bmp[];
daveyclk 2:8e7d89c2cbde 44 extern const uint8_t Yellow_arrow_bmp[];