Difference between revisions of "Reference"

From Gamebuino Wiki
Jump to: navigation, search
m (core: missing parenthesis)
(display: setContrast removed (shouldn't be used by user))
Line 93: Line 93:
 
General :
 
General :
 
<code>
 
<code>
* [[gb.display.setContrast]](value)
 
 
* [[gb.display.clear]]()
 
* [[gb.display.clear]]()
 
* [[gb.display.update]]()
 
* [[gb.display.update]]()
Line 132: Line 131:
 
Triangles :
 
Triangles :
 
<code>
 
<code>
* [[gb.display.drawTriangle]](x0, y0, x1, y1, x2, y2)
+
* [[gb.display.drawTriangle]](x0,y0,x1,y1,x2,y2)
* [[gb.display.fillTriangle]](x0, y0, x1, y1, x2, y2)
+
* [[gb.display.fillTriangle]](x0,y0,x1,y1,x2,y2)
 
</code>
 
</code>
  
 
Bitmaps :
 
Bitmaps :
 
<code>
 
<code>
* [[gb.display.drawBitmap]](x, y, bitmap, ''rotation, flip'')
+
* [[gb.display.drawBitmap]](x,y,bitmap,''rotation'',''flip'')
  
 
rotation: NOROT, ROTCCW, ROT180, ROTCW
 
rotation: NOROT, ROTCCW, ROT180, ROTCW
  
flip: FLIPH, FLIPV, FLIPVH
+
flip: NOFLIP, FLIPH, FLIPV, FLIPVH
 
</code>
 
</code>
  

Revision as of 2014-06-24T17:28:13

Here is listed and explained all Gamebuino specific functions (the Gamebuino Library).

See Arduino Reference for general purpose/basic functions and data types.

Note: Arguments in italic are optional.

core

User interface :

Perfomance monitor :

buttons

buttons:

BTN_A, BTN_B, BTN_C, BTN_UP, BTN_RIGHT, BTN_DOWN, BTN_LEFT

sound

Play & Stop

Build-in sounds

Misc

battery

backlight

The following should be set using SETTINGS.HEX

display

General :

Pixels :

Lines :

Rectangles :

Circles :

Triangles :

Bitmaps :

rotation: NOROT, ROTCCW, ROT180, ROTCW

flip: NOFLIP, FLIPH, FLIPV, FLIPVH

Text :

useful constants: LCDWIDTH, LCDHEIGHT, FONTWIDTH, FONTHEIGHT