satoshi yoneda пре 6 година
родитељ
комит
205e81714b
3 измењених фајлова са 9 додато и 6 уклоњено
  1. 4 3
      tree/boot/config.txt
  2. 4 3
      tree/usr/local/bin/registerIr.py
  3. 1 0
      tree/usr/local/bin/superdac.py

+ 4 - 3
tree/boot/config.txt

@@ -43,7 +43,7 @@
 #arm_freq=800
 
 # Uncomment some or all of these to enable the optional hardware interfaces
-dtparam=i2c_arm=off
+#dtparam=i2c_arm=on
 #dtparam=i2s=on
 dtparam=spi=on
 
@@ -57,9 +57,10 @@ dtparam=spi=on
 
 # DAC
 dtoverlay=hifiberry-dacplus,24db_digital_gain
+
 # Ir
-dtoverlay=lirc-rpi,gpio_in_pin=4
+dtoverlay=lirc-rpi:gpio_in_pin=4,gpio_in_pull=down
+
 # Secondary SDCard
-#dtoverlay=sdio,bus_width=1
 dtoverlay=mmc_spi_cs1
 

+ 4 - 3
tree/usr/local/bin/registerIr.py

@@ -155,9 +155,10 @@ if __name__ == "__main__":
 		sys.exit(0)
 	
 	# stop service
-	os.system('/sbin/systemctl stop lircd')
-	os.system('/sbin/systemctl stop superdac')
-	os.system('/sbin/systemctl stop mpd')
+	# move /sbin -> /bin ...
+	os.system('systemctl stop lircd')
+	os.system('systemctl stop superdac')
+	os.system('systemctl stop mpd')
 	time.sleep(20)
 	#
 	LCD = simpleLCD()

+ 1 - 0
tree/usr/local/bin/superdac.py

@@ -10,6 +10,7 @@
 #  apt install python3-pil
 #  apt install python3-numpy
 #  apt install python3-lirc
+#  apt install fonts-takao
 #  pip3 install pyalsaaudio
 #  pip3 install pysmb
 #  Python_ST7735-raspimag.tar.gz