Diff: doggy.h
- Revision:
- 3:f5146bf55b5d
- Parent:
- 2:d6e572640dcc
- Child:
- 4:545e25d4c3d8
diff -r d6e572640dcc -r f5146bf55b5d doggy.h --- a/doggy.h Thu Dec 30 16:49:46 2010 +0000 +++ b/doggy.h Wed Jan 05 22:35:52 2011 +0000 @@ -22,7 +22,7 @@ /// /// 1/ LCD accesseories: /// -/// - LCD is powered from the 3.3V of the mbed. This configuration requires 9 x 1 uF condensers as +/// - LCD is powered from the 3.3V of the mbed. This configuration requires 9 x 1 uF capacitors as /// shown in the DogM datasheet. Personnaly i used 0.820 uF (or code 824) because i did not have 1 uFs... /// - Amber backlight requires resistors. The data sheet mentions 3 x 47 Ohms resitors (one on each led). /// actually, i added a 500 ohms pot and a 47 Ohms in serie to allow for backlight attenuation (and to @@ -100,7 +100,7 @@ // implementation in doggy.cpp: - /// Xfont assignment, assign example: XFont = xfont_7; , values { xfont_7 (default), xfont_11 } + /// Xfont assignment, assign example: XFont = xfont_8; , values { xfont_8 (default), xfont_11 } const XGlyph* XFont; /// Create DogMLCD instance and intialize display @@ -149,15 +149,15 @@ /// @param page number of the page to transmit, from 0 to 7. /// @param x0 horizontal coordinate of first pixel to transmit, from 0 to 127. /// @param x1 horizontal coordinate of last pixel to transmit, from 0 to 127. - void Flush( unsigned char page, int x0, int x1 ); + void Flush( unsigned char page, int x0 = 0, int x1 = 127 ); /// Transmit several pages of the virtual screen to physical display /// /// Physical screen is organized into 8 horizontal bands called pages. Each band is 8 lines high. /// Call time is about 150 us + 400 us per page at 5MHz spi frequency /// @param page0 number of the first page to transmit, from 0 to 7. - /// @param page1 number of the last page to transmit, from 0 to 7. - void Flush( unsigned char page0, unsigned char page1 ); + /// @param page1 number of the last page to transmit, from 1 to 7 (0 means ignore argument). + void Page( unsigned char page0, unsigned char page1 = 0 ); // implementation in draw2D.cpp: