summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-07 01:40:39 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-07 01:40:39 +0000
commite74af6c45d89859148b79d3d48d918e66ae0e5f3 (patch)
tree991d292e975f164c6291c5b926056cd753f47fe4 /apps
parent789a796f848fb29e37a151f5f59d5ac0b931e6aa (diff)
downloadpx4-nuttx-e74af6c45d89859148b79d3d48d918e66ae0e5f3.tar.gz
px4-nuttx-e74af6c45d89859148b79d3d48d918e66ae0e5f3.tar.bz2
px4-nuttx-e74af6c45d89859148b79d3d48d918e66ae0e5f3.zip
Mostly cosmetic, partial fixes for STM3240G-EVAL LCD
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4705 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps')
-rw-r--r--apps/examples/README.txt9
-rw-r--r--apps/examples/lcdrw/lcdrw_main.c7
2 files changed, 10 insertions, 6 deletions
diff --git a/apps/examples/README.txt b/apps/examples/README.txt
index 06236180c..f11b92b51 100644
--- a/apps/examples/README.txt
+++ b/apps/examples/README.txt
@@ -464,9 +464,16 @@ examples/lcdrw
^^^^^^^^^^^^^^
This example may be used to verify if you can or cannot read data
- correct from an LCD interface. At present, this supports only LCDs
+ correctly from an LCD interface. At present, this supports only LCDs
with RGB565 color format.
+ * CONFIG_EXAMPLES_LDCRW_DEVNO
+ LCD device number. Default: 0
+ * CONFIG_EXAMPLES_LDCRW_XRES
+ LCD X resolution. Default: 240
+ * CONFIG_EXAMPLES_LDCRW_YRES
+ LCD Y resolution. Default: 320
+
examples/mm
^^^^^^^^^^^
diff --git a/apps/examples/lcdrw/lcdrw_main.c b/apps/examples/lcdrw/lcdrw_main.c
index 4b717666f..c366743f4 100644
--- a/apps/examples/lcdrw/lcdrw_main.c
+++ b/apps/examples/lcdrw/lcdrw_main.c
@@ -179,7 +179,7 @@ int MAIN_NAME(int argc, char *argv[])
exit(1);
}
- /* Then read each line from the LCD and write to the TIFF file */
+ /* Loop, writing all possible values to the LCD */
value = 0;
for (row = 0; row < CONFIG_EXAMPLES_LDCRW_YRES; row++)
@@ -214,10 +214,7 @@ int MAIN_NAME(int argc, char *argv[])
}
printf("---f\n");
- /* Then read each line back from the LCD (this would hook into
- * the TIFF file creation library *very* easily to create a
- * TIFF file of the returned values).
- */
+ /* Then read each line back from the LCD. */
offset = 0;
for (row = 0; row < CONFIG_EXAMPLES_LDCRW_YRES; row++)