Difference between revisions of "Reference"

From Gamebuino Wiki
Jump to: navigation, search
m (sound: link to Sound made more visible)
m (Capitalized section titles. PLEASE CHANGE THIS BACK IF THERE WAS A REASON FOR IT BEING THE OTHER WAY! :))
Line 7: Line 7:
 
<div style="float:left;width:480px;margin-right:10px;">
 
<div style="float:left;width:480px;margin-right:10px;">
  
== core ==
+
== Core ==
 
<code>
 
<code>
 
* [[gb.begin]]()
 
* [[gb.begin]]()
Line 36: Line 36:
 
</code>
 
</code>
  
== buttons ==
+
== Buttons ==
 
<code>
 
<code>
 
* [[gb.buttons.pressed]](button)
 
* [[gb.buttons.pressed]](button)
Line 48: Line 48:
 
</code>
 
</code>
  
== sound ==
+
== Sound ==
 
* [[Sound]] : overall explanation of how the sound library works
 
* [[Sound]] : overall explanation of how the sound library works
  
Line 88: Line 88:
 
</code>
 
</code>
  
== backlight ==
+
== Backlight ==
 
<code>
 
<code>
 
* [[gb.backlight.set]](brightness)
 
* [[gb.backlight.set]](brightness)
Line 104: Line 104:
 
</div><div style="float:left;width:480px;margin-right:0;">
 
</div><div style="float:left;width:480px;margin-right:0;">
  
== display ==
+
== Display ==
 
General :
 
General :
 
<code>
 
<code>

Revision as of 2014-08-16T21:48:19

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 :

Physics:

Perfomance monitor :

Buttons

buttons:

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

Sound

  • Sound : overall explanation of how the sound library works

Tracks

Pattern

Notes & commands

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, gb.display.fontWidth, gb.display.fontHeight