background picture of the home page

hey,欢迎来到ska的编程日记

cmd中手动激活vs2022编译环境

(base) PS C:\Users\mchao\Desktop\tmp\ElaWidgetTools> cmd Microsoft Windows [版本 10.0.26200.5751] (c) Microsoft Corporation。保留所有权利。 C:\Users\mchao\Desk

thumbnail of the cover of the post

XPT2046/ADS7846触摸的驱动与校准

XPT2046是ADS7846的仿制IC,驱动互相兼容 config.txt dtoverlay=ads7846,cs=1,penirq=16,penirq_pull=2,speed=1000000,swapxy=1,xmin=200,xmax=3900,ymin=200,ymax=3900 校准屏

thumbnail of the cover of the post

毛胚房装修心得

卸载KDE、安装gdm sudo apt purge kde-plasma-desktop kde-standard kde-full sudo apt autoremove # 安装 GNOME sudo apt update sudo apt install gnome gnome-core

thumbnail of the cover of the post

ssh

移除过期指纹 ssh-keygen -R 192.168.0.108 获取电脑的公钥 type $env:USERPROFILE\.ssh\id_rsa.pub 放入远程机器: mkdir -p ~/.ssh nano ~/.ssh/authorized_keys linux上可以使用此命令一键部署

thumbnail of the cover of the post

linux ssd1306

// 发送SSD1306命令的辅助函数 void send_ssd1306_cmd(uint8_t cmd) { uint8_t data[] = {0x00, cmd}; // 0x00表示命令模式 if (write(g_i2c_fd, data, 2) != 2) {

thumbnail of the cover of the post

树莓派调用gpiod.hpp

sudo apt install libgpiod2 libgpiod-dev cmake_minimum_required(VERSION 3.10) project(skaMenu) # 查找pkg-config find_package(PkgConfig REQUIRED) # 使用

thumbnail of the cover of the post

debian

独显直连会导致kde桌面卡死,开混合模式 换源 sudo nano /etc/apt/sources.list #deb cdrom:[Debian GNU/Linux 12.11.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20

thumbnail of the cover of the post

linux终端美化:zsh

安装zsh sudo apt install zsh 设为默认终端 chsh -s $(which zsh) 安装oh-my-zsh 安装完成之后,退出终端重新进入 按照配置向导配置喜欢的风格 sh -c "$(wget -O- https://raw.githubusercontent.com/o

thumbnail of the cover of the post