projects
/
hackover2013-badge-firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2f90ebd
)
Fixed buffer size (see issue 12)
author
Kevin Townsend
<kevin@ktownsend.com>
Mon, 29 Oct 2012 20:35:47 +0000
(21:35 +0100)
committer
Kevin Townsend
<kevin@ktownsend.com>
Mon, 29 Oct 2012 20:35:47 +0000
(21:35 +0100)
drivers/displays/bitmap/ssd1306/ssd1306.c
patch
|
blob
|
history
diff --git
a/drivers/displays/bitmap/ssd1306/ssd1306.c
b/drivers/displays/bitmap/ssd1306/ssd1306.c
index
fd5ac22
..
6812b34
100644
(file)
--- a/
drivers/displays/bitmap/ssd1306/ssd1306.c
+++ b/
drivers/displays/bitmap/ssd1306/ssd1306.c
@@
-490,7
+490,7
@@
uint8_t ssd1306GetPixel(uint8_t x, uint8_t y)
/**************************************************************************/
void ssd1306ClearScreen()
{
/**************************************************************************/
void ssd1306ClearScreen()
{
- memset(_ssd1306buffer, 0x00,
1024
);
+ memset(_ssd1306buffer, 0x00,
sizeof(_ssd1306buffer)
);
}
/**************************************************************************/
}
/**************************************************************************/
@@
-506,7
+506,7
@@
void ssd1306Refresh(void)
CMD(SSD1306_SETSTARTLINE | 0x0); // line #0
uint16_t i;
CMD(SSD1306_SETSTARTLINE | 0x0); // line #0
uint16_t i;
- for (i
=0; i<1024; i++)
+ for (i
= 0; i < sizeof(_ssd1306buffer); i++)
{
DATA(_ssd1306buffer[i]);
}
{
DATA(_ssd1306buffer[i]);
}
@@
-518,7
+518,7
@@
void ssd1306Refresh(void)
ssd1306SendCommand(SSD1306_SETSTARTLINE | 0x0); // line #0
uint16_t i;
ssd1306SendCommand(SSD1306_SETSTARTLINE | 0x0); // line #0
uint16_t i;
- for (i
=0; i<1024; i++)
+ for (i
= 0; i < sizeof(_ssd1306buffer); i++)
{
ssd1306SendData(_ssd1306buffer[i]);
}
{
ssd1306SendData(_ssd1306buffer[i]);
}
This page took
0.022965 seconds
and
4
git commands to generate.