cosplay helmet control

I know the code could use a lot of work to simplify it, but it just works.

the code uses 2 buttons to switch between visual options for lights/things on a 128x64 oled screen. this shows you what exactly you are about to toggle on/off. and then on the main screen (tab?) it shows what you have on/off at any given time.

/*
  Display.setRotate(1,2,3, or 4);
    may need to relocate screen
  
 
   multi function display for halo helmet
   created by: Caleb Fink
   Libraries from public domain
   Start date: dec 20, 2018
   Last updated: 4,17,

      -update 12/27/18: included second button in to simplify code (removed long/short press)
      -update 4/17/19: revamped interface; changed how application state is displayed
      -update 6/19/19: simplifiedredundant code to reduce program size (now fits onto arduino nano)
      -update 5/10/20: added logo to start screen

   transistors used to power all components from 6v-12v dc
   (currently using 6v form 4 AA)

   oled I2c connections:
   SDA = A4
   SCL = A5

    transistors (2n3904 w/ 1k on base)
    laser = D8
    Fan   = D7
    LED's = D6

    inputs (using pullups)
    Button1 = Gnd - D4
    Button2 = Gnd - D5
    6v = vcc
    
*/



#include <SPI.h>                          //oled libraries
#include <Wire.h>                         // "
#include <Adafruit_GFX.h>                 // "
#include <Adafruit_SSD1306.h>             // "

#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);     //define display



const unsigned char myBitmap [] PROGMEM = {
  // 'halo, 128x35px
  *****bitmap removed to fit forum character limit
};


int x = -1;                                   //used to switch between function screens
int buttonOne = 4;
int buttonTwo = 5;
int led = 6;                            //led pin on board
int fan = 7;                            //fan pin on board
int laser = 8;                          //laser pin on board
char laserState[4];
char ledState[4];
char fanState[4];
int debounce = 100;                     //universal wait after button push
int tune = 100;


void setup() {
  display.setRotation(4);
  Serial.begin(9600);                   //begin serial communications for display
  pinMode(buttonOne, INPUT_PULLUP);     //use internal resistors
  pinMode(buttonTwo, INPUT_PULLUP);     //connect pin to ground via switch/button
  pinMode(laser, OUTPUT);
  pinMode(fan, OUTPUT);
  pinMode(led, OUTPUT);
  display.begin(SSD1306_SWITCHCAPVCC, 0x3c); //initializes display with logo ****make sure line doesn't read 0x3D but instead 0x3c****
  display.display();                         //must use display.display(); after every display command
  delay(10);
  display.clearDisplay();                    //to avoid weird characters try to clear display befor updating text
display.drawBitmap(0, 0, myBitmap, 128, 64, WHITE);
display.display();
delay(5000);
display.clearDisplay();


  
        laserState[0] = 'O';
        laserState[1] = 'F';
        laserState[2] = 'F';
        laserState[3] = 0;
            fanState[0] = 'O';
            fanState[1] = 'F';
            fanState[2] = 'F';
            fanState[3] = 0;
              ledState[0] = 'O';
              ledState[1] = 'F';
              ledState[2] = 'F';
              ledState[3] = 0;



  display.setTextSize(1);
  display.setTextColor(WHITE);
  display.setCursor(0, 0);
  display.println("Welcome");
  display.println("Cortana");
  display.setCursor(0, 16);
  display.println("Proto");
  display.setCursor(0, 25);
  display.println("Press B1 to continue");
    display.setCursor(64, 8);
    display.println("V 0.1");
    display.setCursor(64, 16);
    display.print("MK 1.1");
    display.display();
    delay(200);






}

void loop() {
  if (digitalRead(buttonOne) == LOW) {
    x++;
    delay(debounce);                                  //crude debounce
  }


  if (x == 0) {
    mainDisplay();
    Serial.print("1");
  }

  if (x == 1) {
    laserDisplay();                                          //displays the laser info screen
    if (digitalRead(buttonTwo) == LOW) {
      toggleLaser();
      Serial.print("2");
      delay(debounce);
    }
  }

  if (x == 2) {
    ledDisplay();                                              //displays the LED info screen
    if (digitalRead(buttonTwo) == LOW) {
      toggleLED();
      Serial.print("3");
      delay(debounce);
    }
  }

  if (x == 3) {
    fanDisplay();                                           //displays the fan info screen
    if (digitalRead(buttonTwo) == LOW) {
      toggleFan();
      Serial.print("4");
      delay(debounce);
    }
  }

  if (x == 4) {
     x = 0;           // equal to zero so there is a buffer where nothing will be affected
    Serial.print("5");
    delay(debounce);
  }


}




/*
   Main display screen code=================================
*/

void mainDisplay() {
  display.setTextSize(1);
  display.setTextColor(WHITE);
  display.setCursor(0, 0);
  display.println("Mode");
  display.println("Laser");
  display.setCursor(0, 16);
  display.println("led");
  display.setCursor(0, 25);
  display.println("Fan");
    display.setCursor(64, 8);
    display.println(laserState);
    display.setCursor(64, 16);
    display.print(ledState);
    display.setCursor(64, 25);
    display.print(fanState);
    display.display();
    
  delay(tune);
display.clearDisplay();
}

/*
   Laser code========================================
*/

void laserDisplay() {

  display.setTextSize(1);
  display.setTextColor(WHITE);
  display.setCursor(0, 0);
  display.println("Mode");
  display.println("Laser");
    display.setCursor(64, 0);
    display.println(laserState);
    display.display();
  delay(tune);
  display.clearDisplay();
}
//==================================
void toggleLaser()  {
  if (digitalRead(laser) == LOW) {
    digitalWrite (laser, HIGH);
    laserState[0] = 'O';
    laserState[1] = 'N';
    laserState[2] = 0;
    laserState[3] = 0;
    laserDisplay();
  }
  else if (digitalRead(laser) == HIGH) {
    digitalWrite(laser, LOW);
    laserState[0] = 'O';
    laserState[1] = 'F';
    laserState[2] = 'F';
    laserState[3] = 0;
    laserDisplay();
  }
}


/*
   LED code =====================================
*/

void ledDisplay() {
  display.setTextSize(1);
  display.setTextColor(WHITE);
  display.setCursor(0, 0);
  display.println("Mode");
  display.println("led");
    display.setCursor(64, 0);
    display.print(ledState);
    display.display();
  
  delay(tune);
  display.clearDisplay();
}

void toggleLED() {
  if (digitalRead(led) == LOW) {
    digitalWrite (led, HIGH);
    ledState[0] = 'O';
    ledState[1] = 'N';
    ledState[2] = 0;
    ledState[3] = 0;
    ledDisplay();
  }
  else {
    digitalWrite(led, LOW);
    ledState[0] = 'O';
    ledState[1] = 'F';
    ledState[2] = 'F';
    ledState[3] = 0;
    
    ledDisplay();
  }
}


/*
   Fan code =====================================
*/

void fanDisplay() {

  
  display.setTextSize(1);
  display.setTextColor(WHITE);
  display.setCursor(0, 0);
  display.println("Mode");
  display.println("Fan");
    display.setCursor(64, 0);
    display.print(fanState);
    display.display();
  
  delay(tune);
  display.clearDisplay();
}

void toggleFan() {
  if (digitalRead(fan) == LOW) {
    digitalWrite(fan, HIGH);
    fanState[0] = 'O';
    fanState[1] = 'N';
    fanState[2] = 0;
    fanState[3] = 0;
    fanDisplay();
  }

  else {
    digitalWrite(fan, LOW);
    fanState[0] = 'O';
    fanState[1] = 'F';
    fanState[2] = 'F';
    fanState[3] = 0;
    fanDisplay();
  }
}

What is this for? Do you have a description, pictures, or a vid of it in action?