This module provides a pair of classes that can be used to automate the construction of object interfaces using qt Signal()s and Slot()s.
- Reduced Boilerplate!
These classes lets you define a lot of signals or slots with just a couple lines
extends Control | |
# ****************************************************************************** | |
onready var MenuButton = find_node('MenuButton') | |
# ****************************************************************************** | |
func _ready(): | |
# Add an optional callback when you create a menu item |
#include "stdint.h" | |
/* ************************************************************************** */ | |
#define set_STROBE_PIN(state) LATXbits.LATXY = state // your register here | |
#define set_CLOCK_PIN(state) LATXbits.LATXY = state // your register here | |
#define set_DATA_PIN(state) LATXbits.LATXY = state // your register here | |
static void spi_bitbang_tx_word(uint16_t word) { |
static func get_dir_files(path: String) -> PoolStringArray: | |
var arr: PoolStringArray | |
var dir := Directory.new() | |
dir.open(path) | |
if dir.file_exists(path): | |
arr.append(path) | |
else: |
extends Camera2D | |
# This script turns a Camera2D into a mouse-controllable ObserverCamera | |
# Holding the Middle Mouse button and moving the mouse pans the camera | |
# Mouse Scroll Wheel zooms the camera in and out | |
# Clicking the Middle Mouse button without moving the camera resets the camera |
from qt import * | |
import time | |
import json | |
import logging | |
from .utils import get_ip | |
import socket | |
class Host: | |
def __init__(self, address, beacon_message, timeout=10): |
import json | |
from .serial_device_base import SerialDeviceBase | |
from time import time | |
from qt import * | |
fake_guid = 0 | |
def get_fake_guid(): | |
global fake_guid |
e38bdb922f31e4ccb633a62582fb60411bc09908 |
profiles = {p.profile_name: p for p in UnknownDevice.__subclasses__()} | |
class DeviceManager: | |
def __init__(self): | |
log.info("Initializing DeviceManager...") | |
self.devices = {} | |
self.new_devices = [] | |
self.last_scan_time = 0 | |
self.ports = [] |
#include "log.h" | |
#include "serial_port.h" | |
#include "shell/shell_utils.h" | |
#include "system_time.h" | |
#include <ctype.h> | |
#include <stdbool.h> | |
#include <string.h> | |
/* ************************************************************************** */ |