• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. DavidCozens
    3. Topics
    D
    • Profile
    • Following 0
    • Followers 2
    • Topics 3
    • Posts 44
    • Best 2
    • Controversial 0
    • Groups 0

    Topics created by DavidCozens

    • D

      Unipi Neuron fo CODESYS SL 1.0.2.0 available
      CODESYS • • DavidCozens

      1
      0
      Votes
      1
      Posts
      721
      Views

      No one has replied

    • D

      UniPi Neuron for CODESYS Temporarily Unavailable
      CODESYS • • DavidCozens

      2
      0
      Votes
      2
      Posts
      782
      Views

      D

      A new version is now available in the store updated for CODESYS 3.5.14.0 and supported on a new version of Unipian.

    • D

      MCP7491x Jessie
      UniPi 1 - HW Q&A • • DavidCozens

      3
      0
      Votes
      3
      Posts
      2182
      Views

      D

      I had made a mistake and the notes on the wiki do work for me (I found I didn't need the entry in /etc/modules though). Anyway an updated script that works for me on a clean install of Jessie is below

      #!/bin/bash # UniPi driver setup if [ "$EUID" -ne 0 ] then echo "This script must be run as root" exit fi echo Backup files cp /boot/config.txt /boot/config.txt.bak echo Enabling I2C bus... if ! grep -q '^dtparam=i2c_arm=on' /boot/config.txt then echo 'dtparam=i2c_arm=on' >> /boot/config.txt fi if ! grep -q '^dtparam=i2c_baudrate=400000' /boot/config.txt then echo 'dtparam=i2c_baudrate=400000' >> /boot/config.txt fi echo Enabling the RTC chip... if ! grep -q '^dtoverlay=i2c-rtc,mcp7941x' /boot/config.txt then echo 'dtoverlay=i2c-rtc,mcp7941x' >> /boot/config.txt fi echo Getting i2c development tools apt-get install -y i2c-tools if ! grep -q '^i2c-dev' /etc/modules then echo 'i2c-dev' >> /etc/modules fi echo Removing fake-hwclock... apt-get purge -y fake-hwclock update-rc.d -f fake-hwclock remove apt-get autoremove -y sed -i '/^if [ -e \/run\/systemd\/system/,/^fi/s/^/#/' /lib/udev/hwclock-set echo ' ' echo 'UniPi installed.' echo ' ' echo '!!! REBOOT IS REQUIRED !!!' echo ' ' read -p "Is it OK to reboot now? [y/N] " -n 1 -r echo ' ' if [[ $REPLY =~ ^[Yy]$ ]] then reboot else echo 'Reboot to finish configuring drivers' fi echo ' '