Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install Crowpi2 software and drivers manually from standard Raspberry Pi OS? #46

Open
Pearl-852 opened this issue Jul 3, 2021 · 5 comments

Comments

@Pearl-852
Copy link
Contributor

Instead of using the pre-built CrowPi2 image, I would prefer to install everything (i.e. Crowpi2 software, drivers, etc.) myself. Especially, I have my CrowPi2 system customized with various settings, apps, etc. So, I prefer not to use the pre-built CrowPi2 image when it's updated.

Please provide an installation instructions, similar to what you have provided for CrowPi1.

@CaptCOBOL
Copy link

Absolutely need this! Thanks Pearl!

@rabagliati
Copy link

rabagliati commented Nov 6, 2021

I think I have found out how to do this. I needed the LED seven segment display, but the updated driver I found for it displayed wrong on the third digit. I think this is because Elecrow chose to wire up all the decimals and colons, so their pinout for the LED driver is slightly different.

But, good news, the Crowpi2 install image comes with modern python-3.7 libraries, so I did the following :-

You will find the libraries below in /usr/local/lib/python3.7/dist-packages/ on the Crowpi2 image. Either
scp these off the image, or use losetup to mount the image on a loopback mount under linux. The LED_Backpack comes out of the Happy Birthday directory. I don't have an image handy, but it is under /usr/local/project/ I think.

  • Create a directory ~/.local/crowpi2. We will use this to put the crowpi2 python libraries.
  • Into this directory, copy
  • Adafruit_BBIO/ <-- CharLCD needs this, copy the whole directory
  • CharLCD-1.1.1-py3.7.egg <-- a single file
  • Adafruit_LED_Backpack/ <-- the whole directory, from the Happy Birthday app

I didn't need to copy the GPIO libraries, maybe because because I had previously installed adafruit-blinka. I think the Blinka install allows them to use the C code they wrote for the Arduino without a rewrite. But it might just work if you copy the Adafruit_PureIO-1.1.9-py3.7.egg and add it to PYTHONPATH.

After copying those libraries, add this to ~/.bashrc

export PYTHONPATH=$HOME/.local/crowpi2:$HOME/.local/crowpi2/Adafruit_CharLCD-1.1.1-py3.7.egg

log out, log in.

python3
from Adafruit_CharLCD import Adafruit_CharLCDBackpack as LCD
crowpi2 = LCD(address=0x21)
crowpi2.set_backlight(0)

from Adafruit_LED_Backpack import SevenSegment
segment = SevenSegment.SevenSegment(address=0x70)
segment.begin()
segment.clear()
segment.print_hex(0x8888)
segment.write_display()

@Serpentstar
Copy link

Did this issue ever receive any traction? I just picked up one of the CrowPi2 units and went straight to downloading the new OS. I would much rather see official packages made available than to see a proprietary OS. That is one of the many selling points behind the Pi in the first place.

Thanks.

@DmitryBurstein
Copy link

I second this. Especially now when Bullseye is available for quite some time, but CrowPi2 image for it is still absent.

@Pearl-852
Copy link
Contributor Author

Pearl-852 commented May 23, 2022

@DmitryBurstein
There is a recent discussion to provide a new pre-build CrowPi2 64-bit image on the offical forum.

So, my guess is the 32-bit version will be updated to Bullseye at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants