diff --git a/before_pip.sh b/before_pip.sh new file mode 100755 index 0000000..7d92b55 --- /dev/null +++ b/before_pip.sh @@ -0,0 +1,3 @@ +apt update -y +apt install -y python-dev-is-python3 portaudio19-dev +apt autoremove -y diff --git a/hw_conf/config.txt b/hw_conf/config.txt new file mode 100644 index 0000000..0672b2e --- /dev/null +++ b/hw_conf/config.txt @@ -0,0 +1,61 @@ +# For more options and information see +# http://rptl.io/configtxt +# Some settings may impact device functionality. See link above for details + +# Uncomment some or all of these to enable the optional hardware interfaces +#dtparam=i2c_arm=on +dtparam=i2s=on +#dtparam=spi=on + +# Enable audio (loads snd_bcm2835) +#dtparam=audio=on + +# Additional overlays and parameters are documented +# /boot/firmware/overlays/README + +# Automatically load overlays for detected cameras +camera_auto_detect=1 + +# Automatically load overlays for detected DSI displays +display_auto_detect=1 + +# Automatically load initramfs files, if found +auto_initramfs=1 + +# Enable DRM VC4 V3D driver +dtoverlay=vc4-kms-v3d +max_framebuffers=2 + +# Don't have the firmware create an initial video= setting in cmdline.txt. +# Use the kernel's default instead. +disable_fw_kms_setup=1 + +# Run in 64-bit mode +arm_64bit=1 + +# Disable compensation for displays with overscan +disable_overscan=1 + +# Run as fast as firmware / board allows +arm_boost=1 + +#dtoverlay=googlevoicehat-soundcard +[cm4] +# Enable host mode on the 2711 built-in XHCI USB controller. +# This line should be removed if the legacy DWC2 controller is required +# (e.g. for USB device mode) or if USB support is not required. +otg_mode=1 + +[cm5] +dtoverlay=dwc2,dr_mode=host + +[all] + +dtoverlay=googlevoicehat-soundcard +#dtoverlay=rpi-i2s-mic +#dtoverlay=max98357a +#dtoverlay=hifiberry-dac +[all] +dtoverlay=gpio-fan,gpiopin=14,temp=60000 +dtoverlay=gpio-shutdown,gpio_pin=3 +dtoverlay=gpio-key,gpio=17,active_low=1,gpio_pull=up,label=GPIO_F12,keycode=88 diff --git a/ray-ponder.conf b/ray-ponder.conf index c8122e1..9b689b9 100644 --- a/ray-ponder.conf +++ b/ray-ponder.conf @@ -2,7 +2,7 @@ root= /mnt/coope_drive/ [recorder] add-uuid = yes -dest-dir = record/ +dest-dir = records/ # put 2 percentage sign in template to avoir configparser error strftime-template = %%Y%%m%%d_%%Hh%%Mm%%Ss_ file-ext = .wav diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..9c1f636 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +evdev==1.9.1 +PyAudio==0.2.14 +uuid==1.30