Quellcode durchsuchen

Fix: raspbian 2018-03-13

satoshi yoneda vor 6 Jahren
Ursprung
Commit
205e81714b
3 geänderte Dateien mit 9 neuen und 6 gelöschten Zeilen
  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