Rockbox Development > Starting Development and Compiling
Error making a menu?
motionman95:
Thanks, looking at the way it's used in other programs has helped. Not to push my luck, but can I ask another question? What do the functions rb->snprintf() and rb->lcd_puts() do? Also, when using rb->get_button() what difference does it make if I use rb->get_button(true) or rb->get_button(false)? If given this information I promise someday I'll make a documentation for rockbox C coding!
mcuelenaere:
--- Quote from: motionman95 on March 08, 2009, 12:39:21 PM ---...
What do the functions rb->snprintf() and rb->lcd_puts() do?
...
--- End quote ---
rb->snprintf() is an 'alias' for the normal snprintf() function.
For more information on sprintf(), see this. (snprintf() is the same as sprintf(), except for the fact that you pass an extra argument to it which indicates the buffer size).
rb->lcd_puts(int x, int y, char *str) draws a string at a specified X-Y position (with X and Y being columns and rows).
See apps/plugin.h for a list of all supported functions.
There's also some documentation at docs/PLUGIN_API.new and docs/PLUGIN_API.
motionman95:
More and more I'm appreciating the hard work you guys do to make rockbox! ;) I'm trying to do a newline with "\n" in a rb->splash(). Is this possible, or should I give up? Also, is it possible for me to use the HOLD or REC key to launch my plugin when I'm not in it with plugin_load()? Thanks!
Navigation
[0] Message Index
[*] Previous page
Go to full version