Skip to content

A quick and dirty menu lib to use with Adafruit_TFTLCD library

Notifications You must be signed in to change notification settings

techolga/arduino-menu-button-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

This is a library to easy generate menu buttons. 
This library works only with Adafruit_TFTLCD library: 
	---->https://github.com/adafruit/TFTLCD-Library
 
Commands: 
Menu m; //initialize class instance m 
 
m.setTextColor("Color"); 
m.setButtonColor("color"); 
m.setBackgroundColor("color"); 
m.setColors("Text Color","Button Color","Background Color"); 
 
m.getTextColor(); //returns uint16_t (16 bit color code) 
m.getButtonColor(); //returns uint16_t (16 bit color code) 
m.getBackgroundColor(); //returns uint16_t (16 bit color code) 
 
m.getButtonHeight(); //returns int (px) 
m.getButtonWidth(); //returns int (px) 
m.getBorder(); //returns int (px) 
 
m.oneButton("Btn Text", Selected Btn (0 for none, 1 for first Btn); 
m.twoButtons("Btn1 Text", "Btn2 Text", Selected Btn); 
m.threeButtons("Btn1 Text", "Btn2 Text" , "Btn3 Text", Selected Btn); 
m.fourButtons("Btn1 Text", "Btn2 Text" , "Btn3 Text", "Btn4 Text", Selected Btn); 

m.textBox("Text");

About

A quick and dirty menu lib to use with Adafruit_TFTLCD library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages