🔠Setup¶
Tip
If you work with another hardware, please tell us 🤗
Raspberry Pi¶
Note
Tested on Raspberry Pi 2, and 3.
Ensure that
ttyAMA0is not used for serial console access. Edit the file/boot/cmdline.txtto remove all name-value pairs containingttyAMA0.Add the user to the dialout group:
sudo usermod -a -G dialout $USERReboot.
Beagle Bone¶
Note
The part of the documentation was taken from luopio/py-thermal-printer , and has not been tested.
# Mux settings
echo 1 > /sys/kernel/debug/omap_mux/spi0_sclk
echo 1 > /sys/kernel/debug/omap_mux/spi0_d0