Skip to content

Commit 56b7cf3

Browse files
committed
mention the erratas and u8g2 in the api docs for i2c and Mini_SSD1306
1 parent c56bdd7 commit 56b7cf3

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

docs/api/I2C.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,12 @@ topic is the
124124
Downloading from the ST website requires a (free) registration. Somebody
125125
uploaded the full package to github:
126126
https://github.com/jiaohaitao/stsw-stm8004
127+
128+
There are some important notes on I2C implementation in the errata sheets:
129+
130+
- [STM8S001J3/003xx/103xx/903xx Errata sheet, rev. 5
131+
(CD00265449)](https://www.st.com/content/ccc/resource/technical/document/errata_sheet/c9/f9/ef/bf/63/91/4a/1f/CD00265449.pdf/files/CD00265449.pdf/jcr:content/translations/en.CD00265449.pdf)
132+
- [STM8S005xx STM8S105xx Errata sheet, rev. 7
133+
(CD00270741)](https://www.st.com/content/ccc/resource/technical/document/errata_sheet/e3/c3/4e/24/0c/ca/4b/e7/CD00270741.pdf/files/CD00270741.pdf/jcr:content/translations/en.CD00270741.pdf)
134+
- [STM8S007xx STM8S20xxx Errata sheet, rev. 6
135+
(CD00244749)](https://www.st.com/content/ccc/resource/technical/document/errata_sheet/7a/94/8f/fe/84/14/41/6d/CD00244749.pdf/files/CD00244749.pdf/jcr:content/translations/en.CD00244749.pdf)

docs/api/Mini_SSD1306.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ graphical features are missing.
1212
The Library only supports I2C communication.
1313

1414

15+
## Limitations
16+
17+
This Library uses a full display buffer. For a 128x64 display this requires
18+
128x64 = 8kbit = 1kB of RAM for the display buffer. Since the STM8S103 has
19+
only 1kB RAM total, there is no way that this will fit. If you ignore the
20+
compiler warnings about insufficient RAM, it will still run, but you will
21+
see a graphical memory dump in the lower part of your display. If you are
22+
careful not to modify that part of the memory the program still works, but
23+
is not terribly useful. See the oled-mini example.
24+
25+
The [u8g2](https://github.com/olikraus/u8g2/wiki) library by Oli Kraus is
26+
able to use less RAM by rendering the image in multiple stripes. This is
27+
slower, but saves RAM. I am thinking of porting that library, but don't hold
28+
your breath for it.
29+
1530

1631
## API
1732

0 commit comments

Comments
 (0)