How SPI(Serial peripheral interface ) Works in QT on Raspberry Pi B3+
-
@aha_1980
basically this is my first project in which i have to use RPi peripherals through Qt programming and I have no idea how to do this. there are very less number to no examples about this topic over the internet. what I did was i followed this YouTube video https://www.youtube.com/watch?v=5gmLO0B6xSo , and made small GUI with buttons. project gets build but GUI doesn't appears. if there is proper process please let me know and if their are more example projects related to this then are more welcomed. thank you for your time. -
@Andrex_Qt said in How SPI(Serial peripheral interface ) Works in QT on Raspberry Pi B3+:
but GUI doesn't appears
What graphics environment do you use on your RPi (X11, Wayland, ...)? What OS (is it Raspbian?)? Do you get any errors if you try to start your app?
-
@Andrex_Qt Can you post the error message?
-
Hi,
Did you check that you have everything initialised properly ?
You should run your application through the debugger. You can then get the stack trace and get clues from it on when it failed.
-
What was the issue ?
-
@Andrex_Qt it would be great if you could described the issue more specifically and also provide a detail of what was the solution. In addition, please don't forget to mark your post as solved. Thanks.
-
- Root permission to the program
2.Spi Begin function
After these modifications it started working. beginners mistake.
- Root permission to the program