Pi painter

MiniPOV4 and previous versions

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
tjdowd
 
Posts: 5
Joined: Mon Feb 19, 2018 4:38 pm

Re: Pi painter

Post by tjdowd »

Yes that worked! ..it did produce an error message l:
Traceback (recent call last)
File (“DotStarPiPainter.py” line 230, in <module>
If b == 1 and lightpaint != none:
File (“DotStarPiPainter.py” line 110, in sigusr1_handler scandir(1)
File (“DotStarPiPainter.py” line 142, in scandir lightpaint = loadImage(imgNum) # Load first image
File (“DotStarPiPainter.py” line 168, in loadimage pixels = img.tostring()
File “user/lib/python2.7/dust-packages/PIL/Images.py”, line 697, in tostring “Please call tobytes() instead.”)
NotimplementedError: tostring() has been removed. Please call tobytes() instead.

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Pi painter

Post by pburgess »

Code's been updated on Github. You can get the latest by first deleting the current DotStarPiPainter directory and redoing the git clone step:

git clone https://github.com/adafruit/DotStarPiPainter

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Pi painter

Post by pburgess »

And guide's been updated with the systemd edit stuff. Thanks for your patience!

User avatar
tjdowd
 
Posts: 5
Joined: Mon Feb 19, 2018 4:38 pm

Re: Pi painter

Post by tjdowd »

Success! Thank you very much for the prompt attention to this bug - hope it smooths things out for others working on this project. On to the next step - making it headless! Stay tuned

brunojar
 
Posts: 5
Joined: Mon Jun 02, 2014 6:15 pm

Re: Pi painter

Post by brunojar »

I followed the instructions regarding "brg" and "gbr" I used an image with 6 parallel colors and both did not present the approximate results of the true colors, it was then that I did some tests in the exchange of the letters "brg" and only changing in line 56 with "brg" I got approximate colors, I send a picture of the results. I have not tested with a real image yet, then I'll test it more deeply.

Thank you
Attachments
test.jpg
test.jpg (36.21 KiB) Viewed 4895 times

User avatar
tjdowd
 
Posts: 5
Joined: Mon Feb 19, 2018 4:38 pm

Re: Pi painter

Post by tjdowd »

Is it possible to use a LED strip that has only a data line, no clock line? I'm looking at our strip and only see a 3 pin connection..its a beilai 1m 144 light...

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Pi painter

Post by pburgess »

tjdowd wrote:Is it possible to use a LED strip that has only a data line, no clock line? I'm looking at our strip and only see a 3 pin connection..its a beilai 1m 144 light...
Not as a drop-in replacement, no. The code is pretty tightly written around DotStar strips fast refresh speed.

User avatar
bealzabozo
 
Posts: 2
Joined: Mon Mar 12, 2018 12:29 am

Re: Pi painter

Post by bealzabozo »

I'm in the set up the pi stage of the instructions and when I type in sudo DotStarPiPainter.py I get an error saying python: can't open file 'DotStarPiPainter.py': [Errno 2] No such file or directory

If I open the DotStarPiPainter folder and run DotStarPiPainter.py by clicking on it I get an error
>>> %cd /home/pi/DotStarPiPainter
>>> %Run DotStarPiPainter.py
File "/home/pi/DotStarPiPainter/DotStarPiPainter.py", line 102
print 'Using mouse for positional input'
^
SyntaxError: Missing parentheses in call to 'print'

User avatar
bealzabozo
 
Posts: 2
Joined: Mon Mar 12, 2018 12:29 am

Re: Pi painter

Post by bealzabozo »

Does anyone have any idea what the problem could be? I'm trying to use this for a project in a photography class and I don't know much about linux
bealzabozo wrote:I'm in the set up the pi stage of the instructions and when I type in sudo DotStarPiPainter.py I get an error saying python: can't open file 'DotStarPiPainter.py': [Errno 2] No such file or directory

If I open the DotStarPiPainter folder and run DotStarPiPainter.py by clicking on it I get an error
>>> %cd /home/pi/DotStarPiPainter
>>> %Run DotStarPiPainter.py
File "/home/pi/DotStarPiPainter/DotStarPiPainter.py", line 102
print 'Using mouse for positional input'
^
SyntaxError: Missing parentheses in call to 'print'

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Pi painter

Post by pburgess »

Is your system using Python 3 by default? The code as written might only work with Python 2.7. You can check with:

Code: Select all

python -V
(upper case V)

Also, it really should be run from the command line, e.g.:

Code: Select all

sudo python DotStarPiPainter.py

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Pi painter

Post by pburgess »

If your system does use Python 3 by default, you can run the script in earlier Python by using:

Code: Select all

sudo python2.7 DotStarPiPainter.py

Locked
Please be positive and constructive with your questions and comments.

Return to “MiniPOV”