tag:blogger.com,1999:blog-9120755343492164185.post6704700173554655069..comments2024-01-02T09:50:32.183-06:00Comments on Matthew McMillan: Experimenting with BeagleBone Black and a userspace TFT libraryMatthew McMillanhttp://www.blogger.com/profile/02359945130001450035noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-9120755343492164185.post-85013774156469628232015-02-23T07:40:02.776-06:002015-02-23T07:40:02.776-06:00The problem is I'm Using python3.2.3.
No modul...The problem is I'm Using python3.2.3.<br />No module named spidev<br />But I can see /devspidev 0.0 /dev/spidev0.1<br /><br />Any ideas?suprahttps://www.blogger.com/profile/14226405646858172408noreply@blogger.comtag:blogger.com,1999:blog-9120755343492164185.post-56762292847925733352015-02-17T20:35:38.576-06:002015-02-17T20:35:38.576-06:00One possibility is that your SPI pins aren't s...One possibility is that your SPI pins aren't setup. Run the command 'ls /dev/spi*' and you should see the devices /dev/spidev1.0 and /dev/spidev1.1<br />If not, you need to get that setup first. Adafruit has a nice tutorial on how to do that here: <br />https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/using-the-bbio-libraryMatthew McMillanhttps://www.blogger.com/profile/02359945130001450035noreply@blogger.comtag:blogger.com,1999:blog-9120755343492164185.post-83181134093468019122015-02-16T12:36:59.954-06:002015-02-16T12:36:59.954-06:00Please, i've followed your tutorial, but every...Please, i've followed your tutorial, but every .py example i run, i get this error:<br /><br />root@beaglebone:~/src/Adafruit_Python_ILI9341/examples# sudo python image.py<br />Traceback (most recent call last):<br /> File "image.py", line 41, in <br /> disp = TFT.ILI9341(DC, rst=RST, spi=SPI.SpiDev(SPI_PORT, SPI_DEVICE, max_speed_hz=64000000))<br /> File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/SPI.py", line 42, in __init__<br />IOError: [Errno 2] No such file or directory<br /><br />Any idea?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9120755343492164185.post-37941269136357872802014-12-18T08:25:42.243-06:002014-12-18T08:25:42.243-06:00 Maybe you can use xenomai for real time task Maybe you can use xenomai for real time taskAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9120755343492164185.post-82119448030734899422014-09-14T15:46:05.842-05:002014-09-14T15:46:05.842-05:00Wow thanks for this tip! I'm going to try it o...Wow thanks for this tip! I'm going to try it out asap. Would you mind if I used this info in new blog post?Matthew McMillanhttps://www.blogger.com/profile/02359945130001450035noreply@blogger.comtag:blogger.com,1999:blog-9120755343492164185.post-66737794485298856762014-09-14T09:47:57.800-05:002014-09-14T09:47:57.800-05:00Thanks for posting this, it's extremely helpfu...Thanks for posting this, it's extremely helpful!<br /><br />I wanted to get a faster update, so poked around a bit in the code. The slow updating seems to come almost entirely from the image_to_data call in Adafruit_ILI9341. It's probably worth a devoted c routine at some point, but even swapping it to numpy seems to help, got my redraws down to 0.2s. If you just edit the library, it's a quick change:<br /><br /><br />import numpy as np<br /><br />def image_to_data(image):<br /># """Generator function to convert a PIL image to 16-bit 565 RGB bytes."""<br /># pixels = image.convert('RGB').load()<br /># width, height = image.size<br /># for y in range(height):<br /># for x in range(width):<br /># r,g,b = pixels[(x,y)]<br /># color = color565(r, g, b)<br /># yield (color >> 8) & 0xFF<br /># yield color & 0xFF<br /> pb = np.array(image.convert('RGB')).astype('uint16')<br /> color = ((pb[:,:,0] & 0xF8) << 8) | ((pb[:,:,1] & 0xFC) << 3) | (pb[:,:,2] >> 3)<br /> return np.dstack(((color >> 8) & 0xFF, color & 0xFF)).flatten().tolist()<br />Keithhttps://www.blogger.com/profile/02555547344016007163noreply@blogger.comtag:blogger.com,1999:blog-9120755343492164185.post-65771733899512193182014-09-06T09:02:56.331-05:002014-09-06T09:02:56.331-05:00Good stuff Matt!
Loved your post on the python lib...Good stuff Matt!<br />Loved your post on the python lib bug.<br /><br />it would be great if you could hang around at the BeagleFu forums( forum.beaglefu.com). It is still slow, but it would be nice to have you there.<br /><br />Anyways.. keep up your writeups!<br />Anonymousnoreply@blogger.com