0

Pi painter
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Pi painter

by tjdowd on Wed Feb 21, 2018 11:18 am

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.

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

Re: Pi painter

by pburgess on Wed Feb 21, 2018 6:47 pm

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

pburgess
 
Posts: 3956
Joined: Sun Oct 26, 2008 2:29 am

Re: Pi painter

by pburgess on Wed Feb 21, 2018 6:59 pm

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

pburgess
 
Posts: 3956
Joined: Sun Oct 26, 2008 2:29 am

Re: Pi painter

by tjdowd on Wed Feb 21, 2018 9:11 pm

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

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

Re: Pi painter

by brunojar on Fri Feb 23, 2018 8:08 pm

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 2318 times
brunojar
 
Posts: 5
Joined: Mon Jun 02, 2014 6:15 pm

Re: Pi painter

by tjdowd on Wed Feb 28, 2018 1:34 pm

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...

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

Re: Pi painter

by pburgess on Wed Feb 28, 2018 3:05 pm

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.

pburgess
 
Posts: 3956
Joined: Sun Oct 26, 2008 2:29 am

Re: Pi painter

by bealzabozo on Mon Mar 12, 2018 12:35 am

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'

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

Re: Pi painter

by bealzabozo on Thu Mar 15, 2018 12:24 am

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'

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

Re: Pi painter

by pburgess on Thu Mar 15, 2018 1:02 am

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 | TOGGLE FULL SIZE
python -V

(upper case V)

Also, it really should be run from the command line, e.g.:
Code: Select all | TOGGLE FULL SIZE
sudo python DotStarPiPainter.py

pburgess
 
Posts: 3956
Joined: Sun Oct 26, 2008 2:29 am

Re: Pi painter

by pburgess on Thu Mar 15, 2018 1:03 am

If your system does use Python 3 by default, you can run the script in earlier Python by using:
Code: Select all | TOGGLE FULL SIZE
sudo python2.7 DotStarPiPainter.py

pburgess
 
Posts: 3956
Joined: Sun Oct 26, 2008 2:29 am

Please be positive and constructive with your questions and comments.