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.
Diff: main.cpp
- Revision:
- 2:4d5b94a92f19
- Parent:
- 0:c0be4e018a09
- Child:
- 3:9caa79f40909
--- a/main.cpp Fri Jan 01 11:08:23 2021 +0000 +++ b/main.cpp Fri Jan 01 13:57:57 2021 +0000 @@ -1,6 +1,6 @@ /** * @file main.c - * @brief ILI9163/DL144128TF 128x128 TFT LCD Test code + * @brief ATM0177B3A(ILI9163 128x160) TFT LCD Test code * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,6 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * + * @author Gitakichi * @author Jun Morita (iccraft) * * @copyright Copyright (C) 2012 Simon Inns @@ -32,7 +33,8 @@ uint8_t R=0,G=0,B=0; uint8_t RGB_state=0; - lcdInitialise(LCD_ORIENTATION3); + //lcdInitialise(LCD_ORIENTATION3); + lcdInitialise(ROT_BOTTOM); lcdClearDisplay(decodeRgbValue(0, 0, 0)); @@ -48,12 +50,13 @@ lcdFilledRectangle(0, 64, 127, 127, decodeRgbValue(0, 0, 0)); lcdRectangle(0, 64, 127, 127, decodeRgbValue(31, 31, 31)); - + // Run the LCD test uint8_t ballX = 64, ballY = 96; int8_t ballSpeed = 1; int8_t xDir = ballSpeed, yDir = ballSpeed; + // Bouncy ball demo while(1) {