int8_t gb.sound.playOK()
gb.sound.playOK plays an "OK" sound and returns a track identifier, or -1 on failure
none
int8_t: track identifier or -1 on failure
#include <Gamebuino-Meta.h>void setup() { gb.begin(); }
void loop() { while(!gb.update()); if (gb.buttons.pressed(BUTTON_A)) { // play the OK sound gb.sound.playOK(); } }