// simple turbo boost gauge for Arduino, 128x64 OLED display and a potentiometer
//
// based on the "u8glib_progress_bar" project by urish - https://wokwi.com/arduino/projects/300867986768527882
//
// created by upir
// full-length youtube tutorial: https://youtu.be/JXmw1xOlBdk
// links for tools used for this project:
// WOWKI emulator: https://wokwi.com/
// Start project from urish: https://wokwi.com/arduino/projects/300867986768527882
// Photopea (online graphics editor): https://www.photopea.com/
// Gamer font: https://www.dafont.com/gamer-2.font?text=-1+2+3+4+5+6+7+8+TURBO+turbo+boost
// Image2CPP tool: https://javl.github.io/image2cpp/
// Pressure sensor with Arduino: https://www.youtube.com/watch?v=MRNc7XUHBks
#include "U8glib.h"
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_DEV_0 | U8G_I2C_OPT_NO_ACK | U8G_I2C_OPT_FAST); // Fast I2C / TWI
void setup() {
}
void loop() {
u8g.firstPage();
do {
// u8g.setFont(u8g_font_6x13);
u8g.drawBox(93, 2, 2, 8);
u8g.drawBox(40, 47, 2, 16); // alt yan cizgi
u8g.drawBox(91, 47, 2, 16);
u8g.drawBox(1, 9, 126, 1);
u8g.drawRFrame(0,1, 127, 63, 4);
u8g.drawBox(13, 10, 3, 37);
//////////////////////////////////////
u8g.drawBox(1, 47, 126, 1);
//u8g.setFont(u8g_font_6x13);
///////////kare kutular
u8g.drawRFrame(117, 10, 8, 8, 2);
u8g.drawRFrame(117, 20, 8, 8, 2);
u8g.drawRFrame(117, 30, 8, 8, 2);
u8g.drawRFrame(117, 40, 8, 8, 2);
/////////////////////////////
u8g.setFont(u8g_font_5x7);
//////////////////////////
u8g.setPrintPos(17, 17);
u8g.print("(A) 1.ST CIRCUIT ( )");
u8g.setPrintPos(108, 17);
u8g.print("1");
u8g.drawStr(119, 17, "X");
///////////////////
u8g.setPrintPos(17, 27);
u8g.print("(B) 2.ST CIRCUIT ( )");
u8g.setPrintPos(108, 27);
u8g.print("0");
//u8g.drawStr(119, 27, "X");
/////////////////////
u8g.setPrintPos(17, 37);
u8g.print("(C) 3.ST CIRCUIT ( )");
u8g.setPrintPos(108, 37);
u8g.print("0");
//u8g.drawStr(119, 27, "X");
/////////////
u8g.setPrintPos(17, 46);
u8g.print("(D) 4.ST CIRCUIT ( )");
u8g.setPrintPos(108, 46);
u8g.print("1");
u8g.drawStr(119, 46, "X");
////////////////////////
u8g.drawBox(1, 18, 126, 1);
//u8g.setPrintPos(1, 17);
//u8g.print("|>");
u8g.drawBox(1, 28, 126, 1);
u8g.setPrintPos(1, 26);
u8g.print("|>");
u8g.drawBox(1, 38, 126, 1);
u8g.setPrintPos(1, 37);
//u8g.print("|>");
//u8g.setFont(u8g_font_6x10);
u8g.setPrintPos(1, 46);
u8g.print("|>");
u8g.setPrintPos(6, 8);
u8g.print("Active CIR.&COMP. >Pg:3");
u8g.setPrintPos(1, 55);
u8g.print(">E P On / Off SE ^");
u8g.setPrintPos(35, 62);
u8g.print(" + - LCT ");
//u8g.setFont(u8g_font_u8glib_4);
u8g.setPrintPos(1, 62);
u8g.print(" X G ");
u8g.setPrintPos(3, 67);
u8g.print(" / /");
} while ( u8g.nextPage() );
}