35 lines
867 B
Markdown
35 lines
867 B
Markdown
# fbhello
|
|
|
|
A simple "Hello World" framebuffer application demonstrating the hdmistat carousel and layout APIs.
|
|
|
|
## Features
|
|
|
|
- Displays "Hello World" centered on the screen
|
|
- Shows current time updating at 1 FPS
|
|
- Shows uptime counter
|
|
- Decorative border around the display
|
|
- Falls back to terminal display if framebuffer is unavailable
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
# Run with framebuffer (requires appropriate permissions)
|
|
sudo ./fbhello
|
|
|
|
# Run with terminal display (if framebuffer fails)
|
|
./fbhello
|
|
```
|
|
|
|
## Implementation
|
|
|
|
The application demonstrates:
|
|
|
|
1. Creating a custom screen that implements `FrameGenerator`
|
|
2. Using the layout API to draw text and borders
|
|
3. Setting up a carousel (though with only one screen)
|
|
4. Proper signal handling for clean shutdown
|
|
5. Fallback to terminal display when framebuffer is unavailable
|
|
|
|
## Exit
|
|
|
|
Press Ctrl+C to exit the application. |