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

can't init SPI? #8

Open
Sbatushe opened this issue Jul 8, 2022 · 7 comments
Open

can't init SPI? #8

Sbatushe opened this issue Jul 8, 2022 · 7 comments

Comments

@Sbatushe
Copy link

Sbatushe commented Jul 8, 2022

Hello, I've followed the tutorial on how to install ultimate-typewriter and kept track of all of my commands. this is my setup:

#Logkeys
$ sudo apt install build-essential autotools-dev autoconf kbd
$ git clone https://github.com/kernc/logkeys
$ cd logkeys
$ ./autogen.sh
$ cd build
$ ../configure
$ make
$ sudo make install 
$ cd

#bcm2835
$ curl http://www.airspayce.com/mikem/bcm2835/bcm2835-1.71.tar.gz --output lib.tar.gz
$ tar -xvf lib.tar.gz bcm2835-1.71/
$ rm lib.tar.gz
$ cd bcm2835-1.71/
$ ./configure
$ make
$ sudo make check
$ sudo make install
$ cd

#Ultimate-typewriter
$ git clone https://github.com/NinjaTrappeur/ultimate-writer 
$ cd ultimate-writer 
$ make
$ sudo make install
$ sudo systemctl enable ultimatewriter
$ sudo systemctl start ultimatewriter

Installing process was straightforward, got no errors. However, when i run utlimatewriter i get a message saying that seems like SPI interface is not setup correctly. Maybe i did something wrong? I used sudo raspi-config to enable the SPI interface. I connected my 7.5 inch e-ink display as showed here.

@picnoir
Copy link
Owner

picnoir commented Jul 11, 2022

Hey,

I'm sorry, I won't be able to help you with this :(

It's been 4 years since I stopped working on this project and I pillaged a lot of its component for other stuff. I don't have a working prototype anymore :(

Do you have the same issue using this tag https://github.com/NinjaTrappeur/ultimate-writer/releases/tag/0.1 ?

@Sbatushe
Copy link
Author

Yes, i tried both with release and current branch. I will try to solve this problem and I'll document everything here :)

@za3k
Copy link
Collaborator

za3k commented Aug 1, 2022

Did you reboot after raspi-config? Do you have the two switches set as indicated on the HAT? Can you include the message?

I'm working through this now and I am not getting such a message. (I am encountering problems after this step, will have a PR at some point)

@Sbatushe
Copy link
Author

Sbatushe commented Aug 2, 2022

Which switches? my HAT is like that. I started to develop my own project because i was unable to solve this problem. I don't know if the problem could be my display, because it's a 7.5 inch.

@za3k
Copy link
Collaborator

za3k commented Aug 2, 2022

There are two physical switched on the HAT, like in the picture. I also have the 7.5 inch display

@za3k
Copy link
Collaborator

za3k commented Oct 13, 2022

I can probably help on this, if you include the output of running the above. Set your switches on the HAT to "B0".

@dwehrmann
Copy link

I had the same problem, too:
Cannot init SPI interface. Is it activated in raspi-config?
solved it with sudo ultimatewriter – it might work for you, too.

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

4 participants