Changes between Version 1 and Version 2 of mycroft_mark-2


Ignore:
Timestamp:
04/12/20 08:41:50 (5 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • mycroft_mark-2

    v1 v2  
    1616The things that I had to do:
    1717==== Install the library ====
    18 - while in (.venv)
    19 
    20 {{{
    21 pip3 install RPI.GPIO
    22 pip3 install adafruit-blinka
    23 }}}
     18while in (.venv)
     19* pip3 install RPI.GPIO
     20* pip3 install adafruit-blinka
    2421==== Enable I2C ===
    2522I2C is not enabled by default so run and enable I2C in the Interfacing Options
    2623==== Python script ====
    27 Use this script to set the initial volume to about the half (the range is 0 to 63). Create ~/bin/ada_volume.py with the following conten
     24Use this script to set the initial volume to about the half (the range is 0 to 63). Create ~/bin/ada_volume.py with the following content
     25* nano ~/bin/ada_volume.py
    2826{{{
    2927import board
     
    3432amp.volume = 30
    3533}}}
     34==== Start using systems ====
     35Place a service file in the user directory:
     36* nano ~/.config/systemd/user/myadavolume.service
     37with the content
     38{{{
     39[Unit]
     40Description=set adafruit volume
     41After=network.target
    3642
     43[Service]
     44Type=simple
     45ExecStart=/home/pi/mycroft-core/.venv/bin/python /home/pi/bin/ada_volume.py
    3746
     47[Install]
     48WantedBy=default.target
     49}}}
     50Enable and start it:
     51* systemctl --user daemon-reload
     52* systemctl --user enable myadavolume
     53* systemctl --user start myadavolume