Difference between revisions of "Reference"

From Gamebuino Wiki
Jump to: navigation, search
m (sound: link to the Sound page)
(sound: updated to the last version of the library)
Line 46: Line 46:
 
For an overall explanation of how the sound library works, see [[Sound]].
 
For an overall explanation of how the sound library works, see [[Sound]].
  
Play & Stop
+
Chains<code>
<code>
+
* [[gb.sound.playChain]](chain, channel)
* [[gb.sound.playTrack]](sound, channel)
+
* [[gb.sound.changePatternSet]](patternSet, channel)
* [[gb.sound.stopTrack]](''channel'')
+
</code>Pattern<code>
* [[gb.sound.setTrackLooping]](channel, true/false)
+
* [[gb.sound.playPattern]](sound, channel)
 +
* [[gb.sound.stopPattern]](''channel'')
 +
* [[gb.sound.setPatternLooping]](channel, true/false)
 
* [[gb.sound.isPlaying]](channel)
 
* [[gb.sound.isPlaying]](channel)
 +
</code>Notes & commands<code>
 +
* [[gb.sound.playNote]](pitch, duration, channel)
 +
* [[gb.sound.command]](command, X, Y, channel)
 +
* [[gb.sound.changeInstrumentSet]](instrumentSet, channel)
 
</code>
 
</code>
  

Revision as of 2014-07-01T15:36:08

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

For an overall explanation of how the sound library works, see Sound.

Chains

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