VMUPro SDK v1.0.0
Application Development SDK for the VMUPro
Loading...
Searching...
No Matches
hello.c
Go to the documentation of this file.
1#include "vmupro_sdk.h"
2
3const char *TAG = "[MYAPP]";
4
5void app_main(void)
6{
7 vmupro_log(VMUPRO_LOG_INFO, TAG, "Hello from ELF app!");
8
9 // Clear the display
11
12 // Forces the display to refresh with everything that's in
13 // it's current framebuffer
15
16 // Try and get the video buffer pointers, see if they match the sdk
17 // Make sure to start the double buffered rendering
18 // so the back buffer can be inintialised
20
21 uint8_t *fb1Pointer = vmupro_get_front_fb();
22 uint8_t *fb2Pointer = vmupro_get_back_fb();
23
24 // Terminate the renderer
26
27 // Wait a bit to actually show the changes
28 int counter = 10;
29 while (counter-- > 0)
30 {
31
32 vmupro_sleep_ms(1000);
33 }
34}
const char * TAG
Definition hello.c:3
void app_main(void)
Main entry point for VMUPro applications.
Definition hello.c:5
uint8_t * vmupro_get_front_fb()
Get pointer to the front framebuffer.
void vmupro_stop_double_buffer_renderer()
Stop the double buffer renderer.
@ VMUPRO_COLOR_BLACK
uint8_t * vmupro_get_back_fb()
Get pointer to the back framebuffer.
void vmupro_display_clear(vmupro_color_t color)
Clear the display with a solid color.
void vmupro_display_refresh()
Refresh the display.
void vmupro_start_double_buffer_renderer()
Start the double buffer renderer.
@ VMUPRO_LOG_INFO
Definition vmupro_log.h:33
void vmupro_log(vmupro_log_level_t level, const char *tag, const char *fmt,...)
Output a formatted log message.
VMUPro SDK Main Header.
void vmupro_sleep_ms(uint32_t milliseconds)
Sleep for a specified number of milliseconds.