Help with 2.8" SPI TFT and raspberry pi zero

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
grandfather
 
Posts: 38
Joined: Mon Jan 09, 2017 8:43 pm

Re: Help with 2.8" SPI TFT and raspberry pi zero

Post by grandfather »

It doesn't let me modify /etc/rc.local and tells me Error writing: Permission denied.

As well, when I first open the file in nano it says at the bottom of the screen: file ' /etc/rc.local' is unwritable.

User avatar
adafruit2
 
Posts: 22149
Joined: Fri Mar 11, 2005 7:36 pm

Re: Help with 2.8" SPI TFT and raspberry pi zero

Post by adafruit2 »

you have to use sudo
i really really recommend boning up on some raspberry pi / linux guides
go through all the raspi tutorials!
https://www.raspberrypi.org/documentati ... ge/root.md

User avatar
grandfather
 
Posts: 38
Joined: Mon Jan 09, 2017 8:43 pm

Re: Help with 2.8" SPI TFT and raspberry pi zero

Post by grandfather »

Ahhhhh completely forgot. You're right, I should a bit more about the terminal. I'm pretty new to raspberry pi.

So I've made the changes you suggested but the screen still doesn't work at boot. It still works if I ssh and use sudo ./tftcp, so I didn't mess anything up.

As well I added your recommended changes to the /boot/config.txt file, and since I have it booting to desktop right now, everything is mashed together. Is there a way I can increase legibility of text while still making the UI usable?

Thanks again

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

Re: Help with 2.8" SPI TFT and raspberry pi zero

Post by pburgess »

Could just be a typo. I'd need to know the exact path to the tftcp executable, and see the exact contents of /etc/rc.local.

As for the scrunchy screen: back out those 'bonus' changes I suggested. You mentioned RetroPie so I assumed you'd be using it for gaming (which is kinda low res)...but for desktop stuff, keep it at full resolution. Text will be impossibly small, but that's just the reality of squeezing a desktop down to 320x240.

User avatar
grandfather
 
Posts: 38
Joined: Mon Jan 09, 2017 8:43 pm

Re: Help with 2.8" SPI TFT and raspberry pi zero

Post by grandfather »

Ahhhh I'm afraid I misread your earlier comment. How would one go about finding the absolute path to tftcp? Maybe its /Adafruit_Userspace_PiTFT/tftcp?

I'm really sorry I'm super new to raspberry pi so thanks for bearing with my rookie mistakes.

And for the screen scrunching I figured as much, I could always just have it boot to terminal if I need to use raspbian on it (as there's no UI to scrunch).

Thanks again, I really appreciate all the help you've given me.

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

Re: Help with 2.8" SPI TFT and raspberry pi zero

Post by pburgess »

'cd' to whatever directory it's in, then 'pwd'. Use that, but append /tftcp

User avatar
grandfather
 
Posts: 38
Joined: Mon Jan 09, 2017 8:43 pm

Re: Help with 2.8" SPI TFT and raspberry pi zero

Post by grandfather »

It works like a charm now!!

Thank you so much for all of the time you've spent helping me out - I've learned a ton and this would have taken me infinitely longer without you.

I'm sure I'll be back soon with another question but until then, take care.

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

Return to “General Project help”