Skip to content

Instantly share code, notes, and snippets.

@mroger
Last active August 29, 2015 14:12
Show Gist options
  • Save mroger/18e1f7260af8dca0ca85 to your computer and use it in GitHub Desktop.
Save mroger/18e1f7260af8dca0ca85 to your computer and use it in GitHub Desktop.
Application data structure
// Buttons codes
#define btnRIGHT 0
#define btnUP 1
#define btnDOWN 2
#define btnLEFT 3
#define btnSELECT 4
#define btnNONE 5
// Delay between clock transitions
#define DELAY_VOLUME_TRANSITION 50
// Definition of the 3-dimension array
#define MENU_DEPTH 3
#define MENU_LINES 8
#define MENU_TEXT 16
// Arduino pin for backlight intensity control
#define BACKLIGHT_PIN 10
// Arduino pins connected to digital potentiometers
// for volume control
#define UPDOWN_PIN 11
#define INC_PIN 12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment