.. | ||
fbhello | ||
fbsimplestat | ||
main.go | ||
README.md |
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
# Run with framebuffer (requires appropriate permissions)
sudo ./fbhello
# Run with terminal display (if framebuffer fails)
./fbhello
Implementation
The application demonstrates:
- Creating a custom screen that implements
FrameGenerator
- Using the layout API to draw text and borders
- Setting up a carousel (though with only one screen)
- Proper signal handling for clean shutdown
- Fallback to terminal display when framebuffer is unavailable
Exit
Press Ctrl+C to exit the application.