Skip to content

Commit 13a7bc5

Browse files
committed
quick fix or photopainter
1 parent 975de39 commit 13a7bc5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

custom_components/reterminal_dashboard/frontend/editor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ <h3>Widget properties</h3>
846846
<script src="js/io/file_ops.js"></script>
847847
<script src="js/io/ha_api.js"></script>
848848
<script src="js/io/yaml_import.js?v=3"></script>
849-
<script src="js/io/devices.js"></script>
849+
<script src="js/io/devices.js?v=2"></script>
850850
<script src="js/io/hardware_generators.js"></script>
851851
<script src="js/io/yaml_export.js?v=3"></script>
852852
<script src="js/io/yaml_export_lvgl.js"></script>

custom_components/reterminal_dashboard/frontend/js/io/devices.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ window.DEVICE_PROFILES = {
166166
name: "Waveshare PhotoPainter (6-Color)",
167167
displayModel: "7.30in-f",
168168
displayPlatform: "waveshare_epaper",
169+
psram_mode: "octal",
169170
pins: {
170171
display: { cs: "GPIO9", dc: "GPIO8", reset: "GPIO12", busy: { number: "GPIO13", inverted: true } },
171172
i2c: { sda: "GPIO47", scl: "GPIO48" },

custom_components/reterminal_dashboard/frontend/js/io/yaml_export.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ function generateSnippetLocally() {
10321032
lines.push(" const auto COLOR_GREEN = Color(255, 128, 0);"); // Map to Orange -> Device shows Green
10331033
lines.push(" const auto COLOR_BLUE = Color(255, 255, 0);"); // Map to Yellow -> Device shows Blue
10341034
lines.push(" const auto COLOR_YELLOW = Color(0, 255, 0);"); // Map to Green -> Device shows Yellow
1035-
lines.push(" const auto COLOR_ORANGE = Color(0, 0, 255);"); // 6-Color display: Map Orange to Red
1035+
lines.push(" const auto COLOR_ORANGE = Color(0, 128, 255);"); // Manufacturer Code Key for Orange
10361036
lines.push(" const auto COLOR_OFF = COLOR_WHITE;");
10371037
lines.push(" const auto COLOR_ON = COLOR_BLACK;");
10381038
lines.push("");

0 commit comments

Comments
 (0)