-
Notifications
You must be signed in to change notification settings - Fork 82
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
spidev1.0 not working #8
Comments
I have the same problem... I solve it temporary by this way:
for this:
So /dev/spi1.0 is opened now. Looks like some problems with ?...:... consturction here... |
@vr-mth Could you try like this:
|
But its compiled and working |
2jackkum - thanks for pretty solution. Helped this one:
|
I tried your solutions but, still got the same problem.
And here is the my test code. Where am i doing wrong? ` #define LED_PIN 7 extern char *spiDev1; int main(void){
} |
Wow... you have to recompile library. Also you should to check script.bin file in /boot for spi1 is enabled. Also, in program you need only 2 functions to use:
All another (extern char *spiDev1;, getFd ena etc) - is not needed... |
To enable the auxiliary SPI device (three slave selects) add the line dtoverlay=spi1-3cs to /boot/config.txt. You will need to reboot to get everything working well. To view the list do and you are bound to see something like this |
Hi,
I've been trying on a project. To do so, I needed this library and my orange pi zero's SPI1 pins. Unfortunately I haven't been succeeded. I thought that something was wrong about opi but afterwards I wired my SCLK pin to oscilloscope and watch the signals.
The problem is not about OPi zero, must be about this library. Dont know what yet, but hope gonna find out. Anyone can help me or got any idea how to fix this?
The text was updated successfully, but these errors were encountered: