Difference between revisions of "Reference"
From Gamebuino Wiki
(→backlight) |
(→backlight) |
||
Line 72: | Line 72: | ||
* [[gb.backlight.backlightValue]] | * [[gb.backlight.backlightValue]] | ||
* [[gb.backlight.ambientLight]] | * [[gb.backlight.ambientLight]] | ||
− | * [[gb.backlight.backlightMin]] | + | * [[gb.backlight.backlightMin]] = 0 to 255 |
− | * [[gb.backlight.backlightMax]] | + | * [[gb.backlight.backlightMax]] = 0 to 255 |
− | * [[gb.backlight.ambientLightMin]] | + | * [[gb.backlight.ambientLightMin]] = 0 to 1024 |
− | * [[gb.backlight.ambientLightMax]] | + | * [[gb.backlight.ambientLightMax]] = 0 to 1024 |
</code> | </code> | ||
Revision as of 2014-04-20T11:02:02
The Reference lists and explains all the functions of the Library.
Arguments in italic are optional.
core
- gb.begin(F("name"), logo)
- gb.update()
- gb.setFrameRate(fps)
- gb.frameCount
User interface :
- changeGame()
- gb.menu(menu, length)
- gb.keyboard(text, length)
- gb.popup(F("text"))
- gb.adjustVolume()
Perfomance monitor :
buttons
- gb.buttons.pressed(button)
- gb.buttons.released(button)
- gb.buttons.held(button, duration)
- gb.buttons.repeat(button, period)
- gb.buttons.timeHeld(button)
sound
Play :
- gb.sound.play(sound)
- gb.sound.isPlaying(channel)
- gb.sound.stop(channel)
- gb.sound.setLooping(channel, true/false)
- gb.sound.prescaler
Volume :
- gb.sound.setVolume(volume, channel)
- gb.sound.getVolume(channel)
Build-in sounds :
battery
- gb.battery.voltage
- gb.battery.level
- gb.battery.show = true/false
backlight
- gb.backlight.set(brightness)
- gb.backlight.automatic = true/false
- gb.backlight.backlightValue
- gb.backlight.ambientLight
- gb.backlight.backlightMin = 0 to 255
- gb.backlight.backlightMax = 0 to 255
- gb.backlight.ambientLightMin = 0 to 1024
- gb.backlight.ambientLightMax = 0 to 1024
display
General :
- gb.display.setContrast()
- gb.display.clear()
- gb.display.update()
- gb.display.fillScreen()
- gb.display.persistance
Pixels :
Lines :
Rectangles :
Circles :
- gb.display.drawCircle()
- gb.display.drawCircleHelper()
- gb.display.fillCircle()
- gb.display.fillCircleHelper()
Triangles :
Bitmaps :
Text :
- gb.display.drawChar()
- gb.display.print()
- gb.display.setCursor()
- gb.display.setTextColor()
- gb.display.setTextSize()
- gb.display.setTextWrap()