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
| *PPD-Adobe: "4.3" | |
| *% PPD file for EPL2 Label Printer with CUPS. | |
| *% Created by the CUPS PPD Compiler CUPS v1.4b1. | |
| *% Copyright 2007 by Apple Inc. | |
| *% Copyright 1997-2007 by Easy Software Products. | |
| *% | |
| *% These coded instructions, statements, and computer programs are the | |
| *% property of Apple Inc. and are protected by Federal copyright | |
| *% law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
| *% which should have been included with this file. If this file is |
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
| blueprint: | |
| name: Control fan speed based on remote temperature sensor | |
| description: 'Set | |
| ' | |
| domain: automation | |
| input: | |
| temperature_sensor: | |
| name: Temperature sensor | |
| description: This sensor will be used as the source. | |
| selector: |
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
| #ifndef CONFIGURATION_PRUSA_H | |
| #define CONFIGURATION_PRUSA_H | |
| #include <limits.h> | |
| #include "printers.h" | |
| /*------------------------------------ | |
| GENERAL SETTINGS | |
| *------------------------------------*/ | |
| // Printer revision |
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
| /* ADcmXL3021 CRC-16 Bytewise example */ | |
| /* Juan Chong - 01/12/2021 */ | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <stdbool.h> | |
| /* Test data. NOTE: Data count, preamble, temp, status, and crc are NOT part of the crc calculation! */ | |
| uint8_t snsr_byte_1 [192] = { | |
| /*0x05, 0xad,*/ 0x83, 0x84, //X Data |
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
| // ADcmXL3021 CRC-16 Word Computation Example | |
| // Juan Chong - 01/12/2021 | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| uint16_t snsr_data_1 [96] = { | |
| 0x810B,0x8108,0x8109,0x810A,0x810B,0x810A,0x810C,0x810C, //X Data | |
| 0x810A,0x810A,0x8111,0x810B,0x810F,0x810F,0x810C,0x810E, | |
| 0x8109,0x810B,0x810A,0x810A,0x810A,0x810A,0x810A,0x810B, |
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
| #Ignore everything | |
| /* | |
| #Except top-level stuff | |
| !/.gitignore | |
| !/README.md | |
| !/docker-compose.yml | |
| #Except the nginx config file | |
| #Every level in the directory structure must be exempted, re-ignored, and re-exempted with an extra level |
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/bash | |
| torrentid="$1" | |
| torrentname="$2" | |
| torrentpath="$3" | |
| torrentdest="/seed/" | |
| torrentlog="/config/script_logs/torrentCompleted.log" | |
| echo "==== Start Processing Torrent ====" >> $torrentlog |
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 spidev | |
| from time import sleep | |
| class ImuSpiDriver: | |
| def __init__(self, bus, device): | |
| self.spi = spidev.SpiDev() | |
| self.spi.open(bus, device) | |
| self.spi.max_speed_hz = 4000000 | |
| self.spi.mode = 3 |