Skip to content

Commit c3a9327

Browse files
committed
1.0.8
1 parent 968ce3d commit c3a9327

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mcu-renderer is a lightweight C graphics library designed for microcontrollers (
1818

1919
## Supported devices
2020

21-
- [SDL](docs/supported-devices.md#sdl) (for PC emulation)
21+
- [SDL](docs/supported-devices.md#sdl) (for PC testing)
2222
- [ST7789](docs/supported-devices.md#st7789) (color LCD)
2323
- [ILI9341](docs/supported-devices.md#ili9341) (color LCD)
2424
- [ST7565](docs/supported-devices.md#st7565) (monochrome LCD)

docs/supported-devices.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Supported Devices
1+
# Supported devices
22

33
This document outlines the supported display devices for the `mcu-renderer` library, including initialization instructions and configuration details for each.
44

55
## Overview
66

77
The `mcu-renderer` library supports multiple display types, including SDL for PC-based testing and hardware displays like ST7789, ILI9341, and ST7565. Each display requires specific initialization functions and configurations, detailed below. Ensure you include the appropriate header file and define necessary preprocessor symbols for your target display.
88

9-
## SDL (PC Testing)
9+
## SDL (PC testing)
1010

1111
The SDL backend is ideal for testing graphics output on a PC, simulating various display types.
1212

@@ -81,7 +81,7 @@ void mr_st7789_init(mr_t *mr,
8181
- `send_callback`: Sends 8-bit data to the display.
8282
- `send16_callback`: Sends 16-bit data to the display.
8383
84-
#### Post-Initialization
84+
#### Post-initialization
8585
The initialization is minimal. Send a custom initialization sequence using `mr_send_sequence()` after calling `mr_st7789_init()`.
8686
8787
#### Example
@@ -150,24 +150,24 @@ void mr_st7565_init(mr_t *mr,
150150
- `set_command_callback`: Sets the command/data line (DCX, DC, or A0).
151151
- `send_callback`: Sends 8-bit data to the display.
152152

153-
#### Post-Initialization
153+
#### Post-initialization
154154
Send a custom initialization sequence using `mr_send_sequence()` after calling `mr_st7565_init()`.
155155

156156
#### Example
157157
```c
158158
uint8_t framebuffer[1024]; // For 128x64 display
159159
mr_st7565_init(&mr, 128, 64, MR_ROTATION_0, framebuffer,
160160
sleep_ms, set_reset, set_cs, set_dc, send_8bit);
161-
mr_send_sequence(&mr, st7565_init_sequence, sizeof(st7565_init_sequence));
161+
mr_send_sequence(&mr, st7565_init_sequence);
162162
```
163163
164164
## Best Practices
165-
- **Framebuffer Sizing**: Ensure framebuffers meet minimum size requirements to avoid rendering issues.
166-
- **Custom Initialization**: Always follow initialization calls with `mr_send_sequence()` to configure the display properly.
167-
- **Callback Implementation**: Implement callbacks carefully, ensuring they interact correctly with your hardware's GPIO and communication protocols.
165+
- **Framebuffer sizing**: Ensure framebuffers meet minimum size requirements to avoid rendering issues.
166+
- **Custom initialization**: Always follow initialization calls with `mr_send_sequence()` to configure the display properly.
167+
- **Callback implementation**: Implement callbacks carefully, ensuring they interact correctly with your hardware's GPIO and communication protocols.
168168
- **Testing with SDL**: Use the SDL backend to validate rendering logic before deploying to hardware.
169169
170170
## Troubleshooting
171-
- **Text Not Rendering (ST7789/ILI9341)**: Verify that `textbuffer` is large enough.
172-
- **Display Not Responding**: Check callback implementations and ensure the initialization sequence is correct.
173-
- **SDL Window Issues**: Confirm the `MCURENDERER_SDL` symbol is defined and SDL libraries are linked.
171+
- **Text not rendering (ST7789/ILI9341)**: Verify that `textbuffer` is large enough.
172+
- **Display not responding**: Check callback implementations and ensure the initialization sequence is correct.
173+
- **SDL window issues**: Confirm the `MCURENDERER_SDL` symbol is defined and SDL libraries are linked.

0 commit comments

Comments
 (0)