mirror of
https://github.com/clockworkpi/apt.git
synced 2026-03-18 18:02:55 +01:00
first commit
This commit is contained in:
24
debian/README.md
vendored
Normal file
24
debian/README.md
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# Raspberry pi CM3
|
||||
### Enable SPI0
|
||||
|
||||
SPI0 is disabled by default. To enable it, use *raspi-config*, or ensure the line **dtparam=spi=on** isn't commented out in `/boot/config.txt`
|
||||
|
||||
add **dtoverlay=spi-gpio35-39** under **dtparam=spi=on**, then reboot
|
||||
|
||||
after reboot,make suer there is a `/dev/spidev0.0`
|
||||
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
wget -O - https://raw.githubusercontent.com/clockworkpi/apt/main/debian/KEY.gpg | sudo apt-key add -
|
||||
|
||||
echo "deb https://raw.githubusercontent.com/clockworkpi/apt/main/debian/ stable main" | sudo tee -a /etc/apt/sources.list.d/clockworkpi.list
|
||||
|
||||
sudo apt update
|
||||
|
||||
sudo apt install devterm-thermal-printer
|
||||
|
||||
|
||||
### How to test
|
||||
|
||||
echo "this is a test" > /tmp/DEVTERM_PRINTER_IN
|
||||
Reference in New Issue
Block a user