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.
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI GYRO_DISCO_F429ZI
Revision 1:bbb4f79100de, committed 2018-12-06
- Comitter:
- t3421
- Date:
- Thu Dec 06 20:48:47 2018 +0000
- Parent:
- 0:2f53fa259fef
- Commit message:
- fixed some comments;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Dec 04 19:34:29 2018 +0000
+++ b/main.cpp Thu Dec 06 20:48:47 2018 +0000
@@ -60,7 +60,7 @@
lcd.SetTextColor(LCD_COLOR_WHITE);
wait(0.3);
lcd.DisplayStringAt(0, LINE(4), (uint8_t *)"DISCOVERY BOARD", CENTER_MODE);
- lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"STM32F429ZI", CENTER_MODE);
+ lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"STM32F429", CENTER_MODE);
lcd.DisplayStringAt(0, LINE(6), (uint8_t *)"By: Teddy Sosnowski", CENTER_MODE);
wait(1);
lcd.Clear(LCD_COLOR_WHITE);
@@ -71,15 +71,9 @@
}
void draw_sin(float location, int x_axis, int input_number)
{
- int y_axis = location * 24;
- // if (y_axis > 80)
- // y_axis = 80;
-
- // if (y_axis < -80)
- // y_axis = -80;
-
+ int y_axis = location * 24;
y_axis = 180 - y_axis;
- //Center of 0x0 at pixel 120x180
+ //Center at pixel 120x180 for grid
if (input_number == 0)
BSP_LCD_DrawPixel(x_axis, y_axis, LCD_COLOR_RED);
else