Git
Wiki
Site
projects
/
soft
/
lpc122x
/
core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a54e682
)
fixed the ssd130x_update_tile function about a (x0,y0) / (xt,yt) mismatch
author
David Odin
<david@forma3dev.fr>
Thu, 30 Mar 2017 20:43:39 +0000
(22:43 +0200)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:05 +0000
(17:03 +0100)
extdrv/ssd130x_oled_driver.c
patch
|
blob
|
history
diff --git
a/extdrv/ssd130x_oled_driver.c
b/extdrv/ssd130x_oled_driver.c
index
46f7140
..
ef4ade2
100644
(file)
--- a/
extdrv/ssd130x_oled_driver.c
+++ b/
extdrv/ssd130x_oled_driver.c
@@
-377,7
+377,7
@@
int ssd130x_display_full_screen(struct oled_display* conf)
*/
int ssd130x_update_tile(struct oled_display* conf, uint8_t x0, uint8_t y0)
{
- uint8_t* addr = gddram_start + (
(y0 >> 3) * 128) + x0
;
+ uint8_t* addr = gddram_start + (
y0 * 128) + x0 * 8
;
int ret = 0;
ret = ssd130x_set_column_address(conf, (x0 * 8), (((x0 + 1) * 8) - 1));
Techno-Innov
42 impasse de la Combe du Bois
01150 Blyes - France
contact@techno-innov.fr
Design et hébergement du site :
Techno-Innov
Techno-Innov
- SARL Coopérative
539 169 417 RCS Bourg-en-Bresse
Ce site n'utilise pas de cookies, désolé pour les gourmands !