Comments (13)
Is SPI enabled in Raspbian?
sudo raspi-config
Select 5 Interfacing Options, then P4 SPI, Yes (to enable the SPI interface)
from train-departure-display.
from train-departure-display.
Agreed thank you so much @Dreadmond ! Worked like a charm!
from train-departure-display.
@stuartbain That fixed it for me! Thankyou!
from train-departure-display.
Good stuff @KeirDavis1 - thanks for helping @stuartbain. Would be great to see some photos when you finish the project.
from train-departure-display.
Hi, I'm getting a similar error trying to run through the balena deployment, any help appreciated. I can see that the "spi=on" DT parameter is set so not sure what's going on.
Starting Train Departure Display v0.3.8
main /usr/src/python-packages/luma/core/interface/serial.py:206: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
main self._gpio.setup(pin, self._gpio.OUT)
main Traceback (most recent call last):
main File "/usr/src/python-packages/luma/core/interface/serial.py", line 309, in init
main self._spi.open(port, device)
main FileNotFoundError: [Errno 2] No such file or directory
main
main During handling of the above exception, another exception occurred:
main
main Traceback (most recent call last):
main File "src/main.py", line 325, in
main serial1 = spi(port=1,gpio_DC=5, gpio_RST=6)
main File "/usr/src/python-packages/luma/core/interface/serial.py", line 320, in init
main raise luma.core.error.DeviceNotFoundError('SPI device not found')
main luma.core.error.DeviceNotFoundError: SPI device not found
from train-departure-display.
Having exactly the same issues as KGS-STEAM. tried on both a pi zero w and a pi zero 2 w. same outcome. Was worried I'd brought a duff screen but maybe not.
any help would obviously be really appreciated.
many thanks
Bob
from train-departure-display.
Same here, I have tried 2 Pi zero w's two different displays. I have changed the 0Ohm resistor from R6 to R5 to enable 4SPI. triple checked wiring. metered out connections to ensure continuity and checked 3v supply to display. I guess the next thing to try is check the displays with an arduino.
any help would be really appreciated.
from train-departure-display.
@Dreadmond. You are a star!! This is exactly what I needed. Just tried it ant it works! Thank you so much for taking the time.
from train-departure-display.
Thanks for sharing this guys - I'll take a look here as this definitely wasn't necessary in the past!
from train-departure-display.
Note to myself - it looks (from the logs) like the device is trying to run in dualScreen mode anyway, which explains why enabling the second SPI port resolves the error. Probably something to do with the recent changes to configuration options
from train-departure-display.
+1 - That setting fixed it for me too, thanks @Dreadmond! Already bough a replacement screen as I assumed the old one was broken.
from train-departure-display.
OK should be fixed now - thanks for reporting it all!
from train-departure-display.
Related Issues (20)
- Enhancement request: Train stop times and current location
- Enhancement Request: Dual Screen, 2 stations
- Create alternate platform layout HOT 1
- Documentation: API provider changed HOT 2
- Display turns blank after a few days - needs a reboot HOT 3
- Departure board on steroids.... HOT 15
- Option for departures from a specific platform HOT 3
- Option for 1 Pi, dual screen setup showing different stations HOT 2
- Acceptable for variables? HOT 3
- Add version and release date to startup screen
- Unhandled exception when internet is down HOT 1
- If set to station WBQ, screen is often blank, even after reboot. HOT 2
- DeprecationWarning in Balena console at startup HOT 1
- Screen blanks on refresh
- limited variables when using Balena HOT 1
- If destinationStation is set to null or undefined by balenaCloud it causes an error
- Crash on "PAD" station when major train disruption occurred HOT 2
- Fails to build HOT 2
- Unable to use due to API restrictions HOT 2
- Getting 3 dots on the left of the display and no departures are showing. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from train-departure-display.