上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 77 下一页
摘要: 发送端,25pin #include <Arduino.h> #include <WiFi.h> #include <RCSwitch.h> #define TXD2 25 RCSwitch mySwitch = RCSwitch(); void setup() { Serial.begin(115 阅读全文
posted @ 2023-04-09 19:40 ahuo 阅读(320) 评论(0) 推荐(0)
摘要: docker update --restart=always 容器ID docker inspect 容器ID | jq .[0].HostConfig.RestartPolicy 阅读全文
posted @ 2023-03-24 11:14 ahuo 阅读(196) 评论(0) 推荐(0)
摘要: ip link add name br0 type bridgeip link set br0 upip addr add 192.168.10.100/24 dev br0route add -net 192.168.10.0/24 dev eth0 阅读全文
posted @ 2023-03-15 14:27 ahuo 阅读(53) 评论(0) 推荐(0)
摘要: while true;do aplay -D hw:1,0 /root/stereo.wav ;done 阅读全文
posted @ 2023-03-10 15:10 ahuo 阅读(257) 评论(0) 推荐(0)
摘要: inc include_directories(/usr/x86_64-w64-mingw32/include) link SET(LINK_DIR /usr/x86_64-w64-mingw32/lib/) link_directories(${LINK_DIR}) 阅读全文
posted @ 2023-02-06 18:12 ahuo 阅读(147) 评论(0) 推荐(0)
摘要: 禁用了检查 cmake .. -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc -DCMAKE_C_COMPILER_WORKS=TRUE CMAKE_CXX_COMPILER_WORKS TRUE CMAKE_C_COMPILER_WORKS TRUE 阅读全文
posted @ 2023-02-06 10:16 ahuo 阅读(278) 评论(0) 推荐(0)
摘要: lib.go package main import "C" func main() {} //export Hello func Hello() string { return "Hello" } //export Test func Test() { println("export Test") 阅读全文
posted @ 2023-02-04 14:26 ahuo 阅读(86) 评论(0) 推荐(0)
摘要: cat json.txt | jq .subnode 阅读全文
posted @ 2023-02-04 08:58 ahuo 阅读(34) 评论(0) 推荐(0)
摘要: nmcli conn show nmcli device wifi connect "SSID" password "PWD" 阅读全文
posted @ 2023-01-04 22:06 ahuo 阅读(202) 评论(0) 推荐(0)
摘要: pio upgrade pio boards --installed https://github.com/platformio/platformio https://platformio.org/platformio-ide 阅读全文
posted @ 2022-12-13 21:18 ahuo 阅读(225) 评论(0) 推荐(0)
摘要: git config --global http.sslVerify "false" 阅读全文
posted @ 2022-12-04 19:33 ahuo 阅读(280) 评论(0) 推荐(0)
摘要: docker pull piaoyizy/openwrt-x86 sudo ip link set eth0 promisc on docker network create -d macvlan --subnet=10.0.2.0/24 --gateway=10.0.2.254 -o parent 阅读全文
posted @ 2022-11-27 22:13 ahuo 阅读(1789) 评论(0) 推荐(0)
摘要: 安装 sudo apt-get install isc-dhcp-server nano /etc/default/isc-dhcp-server NTERFACES="DHCP用的网卡" 添加网段 /etc/dhcp/dhcpd.conf #subnet 10.152.187.0 netmask 阅读全文
posted @ 2022-11-27 11:38 ahuo 阅读(193) 评论(0) 推荐(0)
摘要: npm install -g wscat wscat -l 8888 wscat -c ws://127.0.0.1:8888 const WebSocket = require('ws'); const ws = new WebSocket.Server({port: 8777}); ws.on( 阅读全文
posted @ 2022-11-20 08:48 ahuo 阅读(116) 评论(0) 推荐(0)
摘要: # DAPLink Firmware - see https://daplink.io Build ID: v0257-9-g1c60ddb5 (armcc, local mods) Unique ID: 070000011a5a5bb50000000001d3080fa5a5a5a59796990 阅读全文
posted @ 2022-11-13 11:54 ahuo 阅读(266) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 77 下一页