Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/murataka/watchX
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/murataka/watchX:
  no message

# Conflicts:
#	watchX/src/menu.cpp
#	watchX/src/menu.h
  • Loading branch information
murataka committed Apr 17, 2018
2 parents c4c463e + 5931df9 commit d16d8d8
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
45 changes: 45 additions & 0 deletions watchX/src/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ int targetmenuindex=0;

void menusw1( ){

<<<<<<< HEAD
switch(menuapp){
case 0:
switch(menuindex){
Expand Down Expand Up @@ -80,6 +81,46 @@ switch(menuapp){
default:
break;
}
=======
switch(menuindex){
case MENU_WATCH:
// ssd1306_clearScreen();
gotoWatchFace();

break;
case MENU_STOPWATCH:
gotoStopWatch();


break;
case MENU_GYROCUBE:
gotoGyroFace();

break;
case MENU_BLUETOOTH:
gotoBlueTooth();
break;
case MENU_TORCH:
gotoTorch();

break;
case MENU_SETTINGS:
gotoSettings();
break;
case 6:
// uiFunc=drawDiag;
// sw1Func=gotoMenu;
// sw2Func=gotoMenu;
// sw3Func=NULL;
// batteryFunc=NULL;
// usbFunc=NULL;
break;

default:
// itoa(getSelectedMenu(),strtmpbuf,10);
// c2.charF6x8(32,56,strtmpbuf);
break;
>>>>>>> 5931df99f01437ea40f2eae201c02fee232dc899


}
Expand Down Expand Up @@ -113,7 +154,11 @@ targetmenuindex=MENUCOUNT-1;
When memory is dynamically allocated, the atmega chip cannot allocate memory ...
*/
const char title[][15] PROGMEM= {"< MAIN MENU >","< SETTINGS >"};
<<<<<<< HEAD
const char menuCap[][15] PROGMEM ={"Exit","Stopwatch","Gyrocube","Torch","Messages","Settings","Exit","Date&Time","Bluetooth","Screen","Settings3","Settings4","Settings5","Settings6","Settings7","Settings8"};
=======
const char menuCap[][15] PROGMEM ={"Exit","Stopwatch","Gyrocube","Torch","Messages","Settings","About","Help","Bluetooth","Screen","Settings3","Settings4","Settings5","Settings6","Settings7","Settings8"};
>>>>>>> 5931df99f01437ea40f2eae201c02fee232dc899
void drawMenus(){
///char menuCap[][15]={"Exit","Stopwatch","Gyrocube","Diagnostic","Bluetooth","Settings"};
//const char* title PROGMEM= "< MAIN MENU >";
Expand Down
3 changes: 3 additions & 0 deletions watchX/src/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ extern uint8_t menuapp;
#define MENU_SETTINGS_EXIT 0
#define MENU_STOPWATCH 1
#define MENU_GYROCUBE 2
<<<<<<< HEAD
#define MENU_SETTINGS_BLUETOOTH 2
=======
>>>>>>> 5931df99f01437ea40f2eae201c02fee232dc899
#define MENU_TORCH 3

#define MENU_BLUETOOTH 4
Expand Down

0 comments on commit d16d8d8

Please sign in to comment.