Skip to content

Commit

Permalink
remove support for viewtech touchscreens
Browse files Browse the repository at this point in the history
  • Loading branch information
paradajz committed Oct 15, 2023
1 parent 0998be0 commit 69d2c38
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 248 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The following components are supported:
* Potentiometers
* FSRs (force-sensitive resistors)
* LCD/OLED displays
* Touchscreen displays (Nextion and Viewtech/Stone)
* Touchscreen displays (Nextion)

OpenDeck supports sending of both 7-bit and 14-bit Non-Registered Part Numbers (NRPN), latching messages on buttons, various encoding modes for quadrature encoders, LED control using MIDI In, configurable MIDI channels for each component individually, Bluetooth MIDI etc. Full list of supported features can be found [here](https://github.com/shanteacontrols/OpenDeck/wiki/Configurable-features).

Expand Down
1 change: 0 additions & 1 deletion src/firmware/application/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ if(NOT "PROJECT_TARGET_USB_OVER_SERIAL_HOST" IN_LIST PROJECT_TARGET_DEFINES)
target_sources(application
PRIVATE
${CMAKE_CURRENT_LIST_DIR}/io/buttons/Buttons.cpp
${CMAKE_CURRENT_LIST_DIR}/io/touchscreen/model/viewtech/Viewtech.cpp
${CMAKE_CURRENT_LIST_DIR}/io/touchscreen/model/Builder.cpp
${CMAKE_CURRENT_LIST_DIR}/io/touchscreen/model/nextion/Nextion.cpp
${CMAKE_CURRENT_LIST_DIR}/io/touchscreen/Touchscreen.cpp
Expand Down
1 change: 0 additions & 1 deletion src/firmware/application/io/touchscreen/Touchscreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ namespace io
enum class model_t : uint8_t
{
NEXTION,
VIEWTECH,
AMOUNT
};

Expand Down
1 change: 0 additions & 1 deletion src/firmware/application/io/touchscreen/model/Builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ using namespace io;

TouchscreenModelBuilder::TouchscreenModelBuilder(Touchscreen::HWA& hwa)
: _nextion(hwa)
, _viewtech(hwa)
{}

uint8_t Touchscreen::Model::_rxBuffer[Touchscreen::Model::BUFFER_SIZE];
Expand Down
4 changes: 1 addition & 3 deletions src/firmware/application/io/touchscreen/model/Builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifdef PROJECT_TARGET_SUPPORT_TOUCHSCREEN

#include "nextion/Nextion.h"
#include "viewtech/Viewtech.h"

namespace io
{
Expand All @@ -33,8 +32,7 @@ namespace io
TouchscreenModelBuilder(Touchscreen::HWA& hwa);

private:
Nextion _nextion;
Viewtech _viewtech;
Nextion _nextion;
};
} // namespace io
#else
Expand Down

This file was deleted.

181 changes: 0 additions & 181 deletions src/firmware/application/io/touchscreen/model/viewtech/Viewtech.cpp

This file was deleted.

55 changes: 0 additions & 55 deletions src/firmware/application/io/touchscreen/model/viewtech/Viewtech.h

This file was deleted.

1 change: 0 additions & 1 deletion src/firmware/application/io/touchscreen/stub/Touchscreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ namespace io
enum class model_t : uint8_t
{
NEXTION,
VIEWTECH,
AMOUNT
};

Expand Down
1 change: 0 additions & 1 deletion tests/src/system/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ if(NOT "PROJECT_TARGET_USB_OVER_SERIAL_HOST" IN_LIST PROJECT_TARGET_DEFINES)
${PROJECT_ROOT}/src/firmware/application/io/touchscreen/Touchscreen.cpp
${PROJECT_ROOT}/src/firmware/application/io/touchscreen/model/Builder.cpp
${PROJECT_ROOT}/src/firmware/application/io/touchscreen/model/nextion/Nextion.cpp
${PROJECT_ROOT}/src/firmware/application/io/touchscreen/model/viewtech/Viewtech.cpp
)

target_compile_definitions(system
Expand Down

0 comments on commit 69d2c38

Please sign in to comment.