mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-14 04:32:50 -04:00
Merge remote-tracking branch 'upstream/master'
# Conflicts: # firmware/application/bitmap.hpp # firmware/application/receiver_model.cpp # firmware/application/receiver_model.hpp # firmware/application/touch.hpp # firmware/application/ui_setup.cpp # firmware/baseband/proc_ais.hpp # firmware/baseband/proc_ert.hpp # firmware/bootstrap/CMakeLists.txt # firmware/common/portapack_persistent_memory.cpp # firmware/common/portapack_persistent_memory.hpp
This commit is contained in:
commit
45a754645e
43 changed files with 1089 additions and 543 deletions
|
@ -21,6 +21,8 @@
|
|||
|
||||
#include "ui_setup.hpp"
|
||||
|
||||
#include "ui_touch_calibration.hpp"
|
||||
|
||||
#include "portapack_persistent_memory.hpp"
|
||||
#include "lpc43xx_cpp.hpp"
|
||||
using namespace lpc43xx;
|
||||
|
@ -32,6 +34,7 @@ using namespace portapack;
|
|||
#include "string_format.hpp"
|
||||
#include "portapack_persistent_memory.hpp"
|
||||
#include "ui_font_fixed_8x16.hpp"
|
||||
#include "cpld_update.hpp"
|
||||
|
||||
namespace ui {
|
||||
|
||||
|
@ -172,18 +175,6 @@ void AntennaBiasSetupView::focus() {
|
|||
button_done.focus();
|
||||
}
|
||||
|
||||
void SetTouchCalibView::focus() {
|
||||
button_ok.focus();
|
||||
}
|
||||
|
||||
bool SetTouchCalibView::on_touch(const TouchEvent event) {
|
||||
if (event.type == ui::TouchEvent::Type::Start) {
|
||||
text_debugx.set(to_string_dec_uint(round(event.point.x), 4));
|
||||
text_debugy.set(to_string_dec_uint(round(event.point.y), 4));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
SetPlayDeadView::SetPlayDeadView(NavigationView& nav) {
|
||||
add_children({{
|
||||
&text_sequence,
|
||||
|
@ -445,7 +436,7 @@ SetupMenuView::SetupMenuView(NavigationView& nav) {
|
|||
{ "Date/Time", ui::Color::white(), [&nav](){ nav.push<SetDateTimeView>(); } },
|
||||
{ "Frequency correction", ui::Color::white(), [&nav](){ nav.push<SetFrequencyCorrectionView>(); } },
|
||||
{ "Antenna Bias Voltage", ui::Color::white(), [&nav](){ nav.push<AntennaBiasSetupView>(); } },
|
||||
{ "Touch screen", ui::Color::white(), [&nav](){ nav.push<NotImplementedView>(); } },
|
||||
{ "Touch screen", ui::Color::white(), [&nav](){ nav.push<TouchCalibrationView>(); } },
|
||||
{ "Play dead", ui::Color::red(), [&nav](){ nav.push<SetPlayDeadView>(); } }
|
||||
} });
|
||||
on_left = [&nav](){ nav.pop(); };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue