Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Settings/Settings.cpp
- Revision:
- 70:8c4572d17441
- Parent:
- 69:753ba27325ce
- Child:
- 71:bcbac2cfe005
--- a/Settings/Settings.cpp Fri May 22 13:02:26 2020 +0000
+++ b/Settings/Settings.cpp Fri May 22 17:20:22 2020 +0000
@@ -46,13 +46,18 @@
void Settings::init(){
control_method_ = joy;
sound_method_ = on;
- displayed_settings_part_ = contrast;
+ displayed_settings_part_ = controls;
}
ControlsParts Settings::get_control_method(){
return control_method_;
}
+
+SettingsParts Settings::get_displayed_settings_part(){
+ return displayed_settings_part_;
+}
+
void Settings::display_settings_screen(N5110 &lcd, float pot_read){
//Pirnts differnt settings parts
if(displayed_settings_part_ == controls){
@@ -88,10 +93,10 @@
}
-
void Settings::settings_scroll(Direction d_) {
// Changes displayed settings part depending on joystick input
- if (d_ == N || d_ == NE || d_ == NW ) {
+ if (d_ == N || d_ == NE || d_ == NW ) {
+ //printf(" displayed_settings_part_ %d\n",displayed_settings_part_);
displayed_settings_part_ =
settings_fsm[displayed_settings_part_].part_next;
} else if (d_ == S || d_ == SW || d_ == SE) {