Digigurdy-baz
Loading...
Searching...
No Matches
Functions | Variables
display.h File Reference
#include <Arduino.h>
#include <SPI.h>
#include <U8g2lib.h>
#include "config.h"
#include "notes.h"

Go to the source code of this file.

Macros

#define OLED_MOSI   43
 The MOSI/DATA pin to the screen. More...
 
#define OLED_CLK   45
 The CLK/SCL/SCK pin to the screen. More...
 
#define OLED_DC   46
 The DC pin to the screen. More...
 
#define OLED_CS   44
 The CS pin to the screen. More...
 
#define OLED_RESET   47
 The RESET pin to the screen. More...
 

Functions

void start_display ()
 Begins SPI communication with the display. More...
 
void print_menu_6 (String title, String opt1, String opt2, String opt3, String opt4, String opt5, String opt6)
 Prints a formatted menu screen with a numbered 6-option list. More...
 
void print_menu_5 (String title, String opt1, String opt2, String opt3, String opt4, String opt5)
 Prints a formatted menu screen with a numbered 5-option list. More...
 
void print_menu_4 (String title, String opt1, String opt2, String opt3, String opt4)
 Prints a formatted menu screen with a numbered 4-option list. More...
 
void print_menu_3 (String title, String opt1, String opt2, String opt3)
 Prints a formatted menu screen with a numbered 3-option list. More...
 
void print_menu_2 (String title, String opt1, String opt2)
 Prints a formatted menu screen with a numbered 2-option list. More...
 
void print_message_2 (String title, String opt1, String opt2)
 Print a titled screen with two lines of centered text. More...
 
void print_message_3 (String title, String opt1, String opt2, String opt3)
 Print a titled screen with three lines of centered text. More...
 
void print_menu_4_nobk (String title, String opt1, String opt2, String opt3, String opt4)
 Prints a formatted menu screen, numbered 4-option list, NO back option. More...
 
void print_pause_screen (String d_string, String t_string, String h_string, String l_string)
 Print the standard pause screen. More...
 
void print_confirm_screen (String title, String msg1, String msg2, String opt1)
 Prints a confirmation screen. More...
 
void print_tuning (String title, String hi_note, String low_note, String drone_note, String tromp_note, String tpose_str, String capo_str)
 Print a full list of the given tuning with a confirmation option. More...
 
void print_tuning_summary (int hi, int lo, int tromp, int drone)
 Print a string-only list of a given tuning with a confirmation option. More...
 
void print_tuning_choice_3 (String title, int opt1, int opt2, int opt3)
 Print a 3-option tuning choice screen. More...
 
void print_value_selection (String title, String value)
 Print a numerical value selection. More...
 

Variables

U8G2_SSD1306_128X64_NONAME_F_4W_HW_SPI u8g2
 

Variable Documentation

◆ u8g2

U8G2_SH1106_128X64_NONAME_F_3RD_4W_HW_SPI u8g2
extern