TrashNotes
linux - нужно написать ansible, он должен запаковать(с помощью tar -czvf ... ) /var/www и этот tgz скачать к себе - name: Create archive of /var/www command: tar -czvf /tmp/varwww.tgz /var/www - name: Download the archive to local mach...
2025-02-14 12:48:08
"Arduino PRO micro" test pro-micro-test.c const int AxInputs[] = { A0, A1, A2, A3 }; const int DxInputs[] = { 2, 3, 4, 5, 6, 7 }; void setup() { for (int i = 0; i < sizeof(AxInputs) / sizeof(AxInputs[0]); ++i) { pinMode(AxInputs[i], INPUT...
2025-02-12 20:59:04
Flashes flashes.c #include <Arduino.h> // Скорость моргания const int speed = 100; // Номера пинов, к которым подключены светодиоды const int pins[] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; // Массив состояний светодиодов int states[] = {LO...
2025-02-12 20:56:19
rp2040 - Simple TM1637 power in https://circuitpython.org/ TM1637.py import time import board import TM1637 # https://github.com/bablokb/circuitpython-tm1637 display = TM1637.TM1637(board.GP15, board.GP14) #clk dio display.brightness(1) whi...
2025-02-12 20:54:33
Morse Send rp2040 circuitpython # main.py import board import time import sys import select from morse_lib import MorseTransmitter MORSE_WPM = 11 HALT_COMMAND = '~' # Инициализация передатчика Морзе morse = MorseTransmitter(pin=board.GP3, w...
2025-02-12 20:48:21
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23