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
//This is the script used for the dump | |
#include <stdio.h> | |
#include "esp_log.h" | |
#include "driver/gpio.h" | |
static const char *TAG = "GPIO_CONFIG"; | |
void app_main(void) { | |
ESP_LOGI(TAG, "Mostrando configuración de los GPIO..."); |
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
# We create a keypad, connect to wifi, etc. | |
# Function to make a buzzer in pin whatever_pin beep | |
async beep(): | |
whatever_pin.on() | |
await.sleep(sometime) | |
whatever_pin.off() |
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 keypad | |
import digitalio | |
import board | |
import asyncio | |
import os | |
import socketpool | |
import wifi | |
import ipaddress | |
import time # for testing |
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
def miConversion(self,imagenes: list): | |
total=len(imagenes) | |
# imagina que hay una funcion que añade las imagenes al video una detrás de otra, seme ocurre esto | |
for indice,imagen in enumerate(imagenes): | |
progreso=round(indice/total*100) | |
video.add(imagen) | |
self.barraProgreso.setValue(progreso) | |
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
suponemos que boton es el boton :) y nombreDirectorio el QLineEdit | |
self.boton.clicked.connect(self.escogeDirectorio) | |
def escogeDirectorio(self): | |
dir = QFileDialog.getExistingDirectory(self, tr("Directorio de imágenes"), | |
"/home", | |
QFileDialog.ShowDirsOnly | |
| QFileDialog.DontResolveSymlinks) |
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
This does not work: | |
qint32 QgsSerialPortSensor::baudrate() const | |
{ | |
return mBaudrate; | |
} | |
void QgsSerialPortSensor::setBaudrate( const qint32 &baudrate ) | |
{ | |
if ( mBaudrate == baudrate ) |
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
# Script para crear las capas del generalmillas | |
#ren=RenderNASC('#aabbcc',1101) | |
import math | |
#proy=QgsProject.instance() | |
#lay=proy.mapLayersByName('PR')[0] | |
#lay.setRenderer(ren) |
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
root@antares:/# truncate --size=$[(430079+1+33)*512] SD.img <--- Notice the adding of 1+33 sectors to the end of the partition | |
root@antares:/# gdisk SD.img | |
GPT fdisk (gdisk) version 1.0.8 | |
Warning! Disk size is smaller than the main header indicates! Loading | |
secondary header from the last sector of the disk! You should use 'v' to | |
verify disk integrity, and perhaps options on the experts' menu to repair | |
the disk. | |
Caution: invalid backup GPT header, but valid main header; regenerating | |
backup header from main header. |
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
# /bin/sh -n | |
# LTSP configuration file | |
# Documentation=man:ltsp.conf(5) | |
# The special [server] section is evaluated only by the ltsp server | |
[server] | |
# Enable NAT on dual NIC servers | |
#NAT=1 | |
# Provide a full menu name for x86_32.img when `ltsp ipxe` runs | |
# IPXE_X86_32_IMG="Debian Buster" |
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
U-Boot latest-2022.10-1-4debc57a-00007-gb923c1b6 (Mar 06 2023 - 15:54:16 +0000) | |
SoC: Rockchip rk3399 | |
Reset cause: POR | |
Model: Radxa ROCK 4C+ | |
DRAM: 3.9 GiB | |
PMIC: RK8090 (on=0x10, off=0x80) | |
Core: 283 devices, 27 uclasses, devicetree: separate | |
MMC: mmc@fe310000: 2, mmc@fe320000: 1, mmc@fe330000: 0 | |
Loading Environment from MMC... Card did not respond to voltage select! : -110 |
NewerOlder