Add support for the UG-2843HHSWEG04 OLED and for the SAM4L Xplained Pro OLED module that uses that OLED.

This commit is contained in:
Gregory Nutt 2013-06-23 14:39:56 -06:00
parent da19214ca7
commit 56b87e424b
3 changed files with 6 additions and 3 deletions

View File

@ -591,3 +591,6 @@
will do C++ initialization unless configured do otherwise (2013-6-21). will do C++ initialization unless configured do otherwise (2013-6-21).
* apps/examples/cxxtext: Add ostream test as provided by Michael * apps/examples/cxxtext: Add ostream test as provided by Michael
(2013-6-21). (2013-6-21).
* apps/examples/nxhello: Minor fix for compilation error when the
display resolution is low (< 8bpp) due to a typo that has been there
for a long time (2013-6-23).

View File

@ -29,7 +29,7 @@ config EXAMPLES_NXHELLO_BPP
int "Bits-Per-Pixel" int "Bits-Per-Pixel"
default 32 default 32
---help--- ---help---
Pixels per pixel to use. Valid options include 2, 4, 8, 16, 24, Pixels per pixel to use. Valid options include 1, 2, 4, 8, 16, 24,
and 32. Default is 32. and 32. Default is 32.

View File

@ -1,7 +1,7 @@
/**************************************************************************** /****************************************************************************
* examples/nxhello/nxhello_bkgd.c * examples/nxhello/nxhello_bkgd.c
* *
* Copyright (C) 2011 Gregory Nutt. All rights reserved. * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -296,7 +296,7 @@ static void nxhello_initglyph(FAR uint8_t *glyph, uint8_t height,
pixel = (pixel) << 4 | pixel; pixel = (pixel) << 4 | pixel;
ptr = (FAR nxgl_mxpixel_t *)glyph; ptr = (FAR nxgl_mxpixel_t *)glyph;
for (row = 0; row < fheight; row++) for (row = 0; row < height; row++)
{ {
for (col = 0; col < stride; col++) for (col = 0; col < stride; col++)
{ {