acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
VNC_config.h (3276B)
1 /* 2 * @file VNC_config.h 3 * @date 07.01.2016 4 * @author Markus Sattler 5 * 6 * Copyright (c) 2015 Markus Sattler. All rights reserved. 7 * This file is part of the VNC client for Arduino. 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; version 2 of the License 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, a copy can be downloaded from 20 * http://www.gnu.org/licenses/gpl.html, or obtained by writing to the 21 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 22 * Boston, MA 02110-1301, USA. 23 * 24 * 25 */ 26 27 #ifndef VNC_CONFIG_H_ 28 #define VNC_CONFIG_H_ 29 30 /// TCP layer 31 #define USE_ARDUINO_TCP 32 #define VNC_TCP_TIMEOUT 5000 33 // comment below for disable TCP buffer 34 #if defined(ESP32) 35 #define TCP_BUFFER_SIZE 1600 36 #elif defined(ARDUINO_RASPBERRY_PI_PICO_W) 37 #define TCP_BUFFER_SIZE 1600 38 #elif defined(RTL8722DM) 39 #define TCP_BUFFER_SIZE 1600 40 #else 41 #define TCP_BUFFER_SIZE 32 42 #endif 43 44 /// VNC Encodes 45 #define VNC_RRE // RFC6143 46 #define VNC_CORRE 47 #define VNC_HEXTILE // RFC6143 48 #define VNC_ZRLE // RFC6143 49 50 // zlib related 51 #define VNC_COMPRESS_LEVEL 4 52 53 /// VNC Pseudo-encodes 54 #define SET_DESKTOP_SIZE // Set resolution according to display resolution 55 56 /// Testing 57 // #define FPS_BENCHMARK 58 // #define FPS_BENCHMARK_FULL 59 60 #define MAXFPS 25 61 62 // #define SLOW_LOOP 250 63 64 /// Memory Options 65 #define VNC_RAW_BUFFER (320 * 2) // RAW screen width 66 #ifdef VNC_ZRLE 67 #define FB_SIZE (64 * 64) 68 #else // !VNC_ZRLE 69 #define FB_SIZE (16 * 16) 70 #endif // !VNC_ZRLE 71 72 /// debugging 73 #if defined(ESP32) 74 #define DEBUG_VNC(...) Serial.printf(__VA_ARGS__) 75 #elif defined(ARDUINO_RASPBERRY_PI_PICO_W) 76 #define DEBUG_VNC(...) Serial.printf(__VA_ARGS__) 77 #elif defined(RTL8722DM) 78 #define DEBUG_VNC(...) printf(__VA_ARGS__) 79 #else // default platform 80 81 #ifdef DEBUG_ESP_PORT 82 #define DEBUG_VNC(...) DEBUG_ESP_PORT.printf(__VA_ARGS__) 83 #elif defined(ESP8266) 84 #define DEBUG_VNC(...) Serial.printf(__VA_ARGS__) 85 #else 86 #define DEBUG_VNC(...) os_printf(__VA_ARGS__) 87 #endif 88 89 #endif // default platform 90 91 #define DEBUG_VNC_HANDLE(...) 92 #define DEBUG_VNC_RAW(...) 93 #define DEBUG_VNC_HEXTILE(...) 94 #define DEBUG_VNC_ZLIB(...) 95 #define DEBUG_VNC_TRLE(...) 96 #define DEBUG_VNC_ZRLE(...) 97 #define DEBUG_VNC_RICH_CURSOR(...) 98 99 #ifndef DEBUG_VNC 100 #define DEBUG_VNC(...) 101 #endif 102 103 #ifndef DEBUG_VNC_HANDLE 104 #define DEBUG_VNC_HANDLE(...) DEBUG_VNC(__VA_ARGS__) 105 #endif 106 107 #ifndef DEBUG_VNC_RAW 108 #define DEBUG_VNC_RAW(...) DEBUG_VNC(__VA_ARGS__) 109 #endif 110 111 #ifndef DEBUG_VNC_HEXTILE 112 #define DEBUG_VNC_HEXTILE(...) DEBUG_VNC(__VA_ARGS__) 113 #endif 114 115 #ifndef DEBUG_VNC_ZLIB 116 #define DEBUG_VNC_ZLIB(...) DEBUG_VNC(__VA_ARGS__) 117 #endif 118 119 #ifndef DEBUG_VNC_TRLE 120 #define DEBUG_VNC_TRLE(...) DEBUG_VNC(__VA_ARGS__) 121 #endif 122 123 #ifndef DEBUG_VNC_ZRLE 124 #define DEBUG_VNC_ZRLE(...) DEBUG_VNC(__VA_ARGS__) 125 #endif 126 127 #ifndef DEBUG_VNC_RICH_CURSOR 128 #define DEBUG_VNC_RICH_CURSOR(...) DEBUG_VNC(__VA_ARGS__) 129 #endif 130 131 #endif /* VNC_CONFIG_H_ */