This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "DigiKeyboard.h" | |
// Teclas universais (códigos HID) | |
#define KEY_MINUS 45 | |
#define KEY_SLASH 56 | |
#define KEY_SPACE 44 | |
#define KEY_COLON 33 // Shift + ; | |
#define KEY_TAB 43 | |
//#define KEY_SLASH 0x38 // Código físico para tecla '/' | |
#define KEY_BACKSLASH 0x31 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <opencv2/opencv.hpp> | |
#include <vector> | |
#include <random> | |
using namespace cv; | |
using namespace std; | |
// Função para calcular o campo de velocidade (exemplo: vórtice) | |
Point2f calculateVelocity(Point2f pos, Size imgSize) { | |
// Centralizar coordenadas |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <opencv2/opencv.hpp> | |
#include <X11/Xlib.h> | |
using namespace cv; | |
using namespace std; | |
// ====================== | |
// Optimized Settings | |
// ====================== | |
#define PROCESS_WIDTH 320 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <nRF24L01.h> | |
#include <RF24.h> | |
#define CE_PIN_1 7 // Primeiro rádio | |
#define CSN_PIN_1 8 | |
#define CE_PIN_2 9 // Segundo rádio | |
#define CSN_PIN_2 10 | |
const uint8_t BLUETOOTH_CHANNELS[] = {32, 34, 46, 48, 50, 52, 0, 1, 2, 4, 6, 8, 22, 24, 26, 28, 30, 74, 76, 78, 80}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from RF24 import RF24, RF24_PA_LOW | |
radio = RF24(22, 8) # CE=GPIO22, CSN=GPIO8 | |
radio.begin() | |
radio.setDataRate(RF24.BR_2MBPS) | |
radio.setPALevel(RF24_PA_LOW) | |
radio.setAutoAck(False) | |
radio.setCRCLength(RF24.CRC_DISABLED) # Desativa CRC para maior velocidade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IMPLEMENT_SIMPLE_AUTOMATION_TEST(FCxEnvPropVideoPlayAndPauseTest, "Plugins.CXProRuntimeCore.VideoCore.EnvPropVideo.Play", EAutomationTestFlags::EditorContext | EAutomationTestFlags::ProductFilter) | |
bool FCxEnvPropVideoPlayAndPauseTest::RunTest(const FString& Parameters) | |
{ | |
// Test setting the environment property for Volume | |
{ | |
UWorld* World = nullptr; | |
UTestGameInstance* GameInstance = nullptr; | |
CXTestHelper::InitWorldAndGameInstance(World, GameInstance); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONSOLE: Use build tool: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.exe | |
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj | |
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Build\EpicGames.Build.csproj | |
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Core\EpicGames.Core.csproj | |
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Horde\EpicGames.Horde.csproj | |
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.IoHash\EpicGames.IoHash.csproj | |
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.OIDC\EpicGames.OIDC.csproj | |
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Serialization\EpicGames.Serialization.csproj | |
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.UBA\EpicGames.UBA.csproj | |
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.UHT\EpicGames.UHT.csproj |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ldlidar_driver.h" | |
#include <iostream> | |
#include <cstring> | |
#include <unistd.h> | |
#include <arpa/inet.h> | |
#include <stdio.h> | |
#include <pigpio.h> | |
const int PORT = 8080; | |
const int BUFFER_SIZE = 1024; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
SERVER_HOST = "127.0.0.1" # Endereço do servidor C++ | |
SERVER_PORT = 8080 # Porta do servidor C++ | |
# Criação do socket | |
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
# Conexão ao servidor C++ | |
client_socket.connect((SERVER_HOST, SERVER_PORT)) |
NewerOlder