projects
/
cortex-from-scratch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17dedc3
)
st7735s: bug fix uninitialized value
author
Robin Krens
<robin@robinkrens.nl>
Wed, 18 Sep 2019 08:08:58 +0000
(15:08 +0700)
committer
Robin Krens
<robin@robinkrens.nl>
Wed, 18 Sep 2019 08:08:58 +0000
(15:08 +0700)
drivers/st7735s.c
patch
|
blob
|
history
diff --git
a/drivers/st7735s.c
b/drivers/st7735s.c
index
8eef4f3
..
870ac06
100644
(file)
--- a/
drivers/st7735s.c
+++ b/
drivers/st7735s.c
@@
-197,7
+197,8
@@
int tft_putc(uint16_t fg, uint16_t bg, char c) {
//uint8_t databuf[9] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
int totalpixels = 72;
- int column, row = 0;
+ int column = 0;
+ int row = 0;
uint8_t current;
tft_command(TFT_CASET, 4, 0x00, 10, 0x00, 18);