Difference between revisions of "Reference"

From Gamebuino Wiki
Jump to: navigation, search
(display: added setFont())
(sound: updated to the new sound library)
Line 45: Line 45:
  
 
== sound ==
 
== sound ==
'''Note : sound library will be changed soon to allow the use of instruments, the following functions are just here for reference until then'''
+
Play & Stop
 
 
Play :
 
 
<code>
 
<code>
* [[gb.sound.play]](sound, channel)
+
* [[gb.sound.playTrack]](sound, channel)
 +
* [[gb.sound.stopTrack]](''channel'')
 +
* [[gb.sound.setTrackLooping]](channel, true/false)
 
* [[gb.sound.isPlaying]](channel)
 
* [[gb.sound.isPlaying]](channel)
* [[gb.sound.stop]](''channel'')
 
* [[gb.sound.setLooping]](channel, true/false)
 
* [[gb.sound.prescaler]]
 
 
</code>
 
</code>
  
Volume :
+
Build-in sounds
 
<code>
 
<code>
* [[gb.sound.setVolume]](volume, ''channel'')
+
* [[gb.sound.playOK]]()
* [[gb.sound.getVolume]](''channel'')
+
* [[gb.sound.playCancel]]()
 +
* [[gb.sound.playTick]]()
 
</code>
 
</code>
  
Build-in sounds :
+
Misc
 
<code>
 
<code>
* [[gb.sound.playOK]]()
+
* [[gb.sound.setVolume]](volume, ''channel'')
* [[gb.sound.playCancel]]()
+
* [[gb.sound.getVolume]](''channel'')
* [[gb.sound.playTick]]()
+
* [[gb.sound.setInstruments]](instruments, channel)
 +
* [[gb.sound.prescaler]]
 
</code>
 
</code>
  

Revision as of 2014-06-24T16:46:04

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: FLIPH, FLIPV, FLIPVH

Text :

useful constants: LCDWIDTH, LCDHEIGHT, FONTWIDTH, FONTHEIGHT