2015-08-06 13:31:26 -06:00
|
|
|
/*
|
|
|
|
* Author: Jon Trulson <jtrulson@ics.com>
|
|
|
|
* Copyright (c) 2015 Intel Corporation.
|
|
|
|
*
|
2019-07-30 19:41:32 -07:00
|
|
|
* This program and the accompanying materials are made available under the
|
|
|
|
* terms of the The MIT License which is available at
|
|
|
|
* https://opensource.org/licenses/MIT.
|
2015-08-06 13:31:26 -06:00
|
|
|
*
|
2019-07-30 19:41:32 -07:00
|
|
|
* SPDX-License-Identifier: MIT
|
2015-08-06 13:31:26 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <iostream>
|
2017-08-30 15:00:29 -07:00
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "eboled.hpp"
|
2017-08-30 15:00:29 -07:00
|
|
|
#include "upm_utilities.h"
|
2015-08-06 13:31:26 -06:00
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
2017-08-30 15:00:29 -07:00
|
|
|
int
|
|
|
|
main(int argc, char** argv)
|
2015-08-06 13:31:26 -06:00
|
|
|
{
|
2017-08-30 15:00:29 -07:00
|
|
|
//! [Interesting]
|
|
|
|
// Instantiate an Edison Block OLED using default values
|
|
|
|
upm::EBOLED lcd;
|
|
|
|
|
|
|
|
lcd.clear();
|
|
|
|
lcd.setCursor(10, 15);
|
|
|
|
lcd.write("Hello");
|
|
|
|
lcd.setCursor(30, 15);
|
|
|
|
lcd.write("World!");
|
|
|
|
lcd.refresh();
|
|
|
|
|
|
|
|
cout << "Sleeping for 5 seconds..." << endl;
|
|
|
|
upm_delay(5);
|
2015-08-06 13:31:26 -06:00
|
|
|
|
2017-08-30 15:00:29 -07:00
|
|
|
//! [Interesting]
|
|
|
|
return 0;
|
2015-08-06 13:31:26 -06:00
|
|
|
}
|