[Solved] Serial Print not working

General

ripper121

6 years ago

When I try to run this the Meta shows the SD INIT.. OK and then hangs.

Also no output on the Serial.


Found the problem.... I need to use SerialUSB.print instead of Serial.print

#include <Gamebuino-Meta.h>

void setup() {
  gb.begin();
  Serial.begin(115200);
  Serial.println("TEST");
}

void loop() {
  while (!gb.update());
  gb.display.clear();

  // print "Hello World" to the screen
  gb.display.println("TEST");

  if (gb.buttons.pressed(BUTTON_A)) {
    Serial.println("DIR");
  }
}