2014-05-08 20:44:07 +01:00
|
|
|
/*
|
|
|
|
* Author: Thomas Ingleby <thomas.c.ingleby@intel.com>
|
|
|
|
* Copyright (c) 2014 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.
|
2014-05-08 20:44:07 +01:00
|
|
|
*
|
2019-07-30 19:41:32 -07:00
|
|
|
* SPDX-License-Identifier: MIT
|
2014-05-08 20:44:07 +01:00
|
|
|
*/
|
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "lcm1602.hpp"
|
2017-04-06 16:18:53 -07:00
|
|
|
#include "upm_utilities.h"
|
2014-05-08 20:44:07 +01:00
|
|
|
|
|
|
|
int
|
2017-08-30 15:00:29 -07:00
|
|
|
main(int argc, char** argv)
|
2014-05-08 20:44:07 +01:00
|
|
|
{
|
2017-08-30 15:00:29 -07:00
|
|
|
//! [Interesting]
|
|
|
|
upm::Lcm1602 lcd(0, 0x27);
|
|
|
|
lcd.setCursor(0, 0);
|
|
|
|
lcd.write("Hello World");
|
|
|
|
//! [Interesting]
|
2017-04-06 16:18:53 -07:00
|
|
|
upm_delay(3);
|
2017-08-30 15:00:29 -07:00
|
|
|
lcd.setCursor(1, 2);
|
|
|
|
lcd.write("Hello World");
|
2017-04-06 16:18:53 -07:00
|
|
|
upm_delay(3);
|
2017-08-30 15:00:29 -07:00
|
|
|
lcd.setCursor(2, 4);
|
|
|
|
lcd.write("Hello World");
|
2017-04-06 16:18:53 -07:00
|
|
|
upm_delay(3);
|
2017-08-30 15:00:29 -07:00
|
|
|
lcd.setCursor(3, 6);
|
|
|
|
lcd.write("Hello World");
|
2017-04-06 16:18:53 -07:00
|
|
|
upm_delay(3);
|
2015-06-10 14:52:59 -06:00
|
|
|
return 0;
|
2014-05-08 20:44:07 +01:00
|
|
|
}
|