default "Arduino" text on the middle ?



  • hum, may I know how to remove the "Arduino" text on the middle ?



  • To remove the Arduino text in the display, you just need to hide its TextLabelView, and repaint the background.

    In Arduino release 0.9.1 (just released) we introduced a global variable AppController ::ArduinoAppController, that points to the existing pre-initialized AppController. It owns the text and background views, so you use it to edit the default behaviour:

    #include <app_controller.h>
    
    void setup() {
      // put your setup code here, to run once:
      // hide the text label
      AppController::ArduinoAppController->ard.hide();
      // repaint the background
      AppController::ArduinoAppController->bg.scheduleRepaint();
    }
    
    void loop() {
      // put your main code here, to run repeatedly:
    
    }
    

    Now, no TextLabelView is visible on the screen.


Log in to reply