Hackathon

Dependencies:   C12832 CCS811 MMA7660 Sht31 TSL2561

Fork of Mbed-Connect-Cloud-Demo by Cambridge Hackathon

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 //----------------------------------------------------------------------------
00002 // The confidential and proprietary information contained in this file may
00003 // only be used by a person authorised under and to the extent permitted
00004 // by a subsisting licensing agreement from ARM Limited or its affiliates.
00005 //
00006 // (C) COPYRIGHT 2016 ARM Limited or its affiliates.
00007 // ALL RIGHTS RESERVED
00008 //
00009 // This entire notice must be reproduced on all copies of this file
00010 // and copies of this file may only be made by a person if such person is
00011 // permitted to do so under the terms of a subsisting license agreement
00012 // from ARM Limited or its affiliates.
00013 //----------------------------------------------------------------------------
00014 #include "mbed.h"
00015 #include "C12832.h"
00016 #include "CCS811.h"
00017 #include "Sht31.h"
00018 #include "TSL2561.h"
00019 #include "MMA7660.h"
00020 
00021 // GLOBAL VARIABLES HERE
00022 C12832  lcd(PE_14, PE_12, PD_12, PD_11, PE_9);
00023 
00024 
00025 // FUNCTION DEFINTIONS HERE
00026 
00027 void lcd_print(const char* message) {
00028     lcd.cls();
00029     lcd.locate(0, 3);
00030     lcd.printf(message);
00031 }
00032 
00033 
00034 int main() {
00035 
00036     // MAIN CODE HERE
00037 lcd_print("Hello World!");
00038 
00039 
00040 }