Go to advanced search

by salvato
Wed Sep 18, 2019 10:08 am
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?
Replies: 23
Views: 717

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

The labels are there but since I've set an initial empty text they are not shown.
Open the form editor and look in the Object-Class window.
the labels are named:

Code: Select all

pin23Label
pin24Label
into the Property-Value Window look for the property
frameShape
and play with the possible values
by salvato
Wed Sep 18, 2019 8:15 am
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?
Replies: 23
Views: 717

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

The problem probably started when you tried to rename your project.
into the .pro file you will find the following line:

Code: Select all

TARGET = quit_btn
change it in

Code: Select all

TARGET = quit_wiringPi
by salvato
Tue Sep 17, 2019 1:37 pm
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?
Replies: 23
Views: 717

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Then the Qt configuration seem ok. Then: 1) replace the files MainWindow.cpp and MainWindow.h with those in my project 2) in the .pro file insert the lines we discussed before in order to link the right libraries and add the include path. Run the program and look at the output in the "Compile Output...
by salvato
Tue Sep 17, 2019 11:19 am
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?
Replies: 23
Views: 717

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Please do this:

Create a new project in QtCreator Without adding a single line and try to run it and see the MainWindow Appear.
It is this working ?
by salvato
Tue Sep 17, 2019 8:54 am
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?
Replies: 23
Views: 717

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Sorry... I'm not able to help you since there are too many unknown that I should imagine...
If you are able to place your project into a github repository I can try to help you.
by salvato
Tue Sep 17, 2019 7:51 am
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?
Replies: 23
Views: 717

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Code: Select all

label_03.setText(QString("%1").arg(i));
should do the work.

Meaning...

You should convert the numerical value of i into a String (QString in Qt) and then assign the string to the QLabel.
by salvato
Fri Sep 13, 2019 3:01 pm
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?
Replies: 23
Views: 717

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

Never tried but perhaps you can just insert into the .pro file the following three lines:

Code: Select all

INCLUDEPATH += /usr/local/include
LIBS += -L"/usr/local/lib"
LIBS += -lwiringPi
No harm...
by salvato
Fri Sep 13, 2019 2:07 pm
Forum: C/C++
Topic: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?
Replies: 23
Views: 717

Re: qtcreator (qt5, qtdesigner): how to access GPIOs (r/w pins, i2c devices, UART,...)?

@dsyleixa123 Hi. I don't use WiringPi but instead pigpiod. If you agree to use pigpiod this could help you to start: In the .pro file add the following lines (to add the include path and the library path necessary to find the needed files): INCLUDEPATH += /usr/local/include LIBS += -lpigpiod_if2 # T...
by salvato
Fri Sep 13, 2019 12:32 pm
Forum: Camera board
Topic: Is there a c library equivalent to picamera ?
Replies: 4
Views: 221

Re: Is there a c library equivalent to picamera ?

@njm @DougieLawson Thank you for you answers. I'm studying the raspicam sources and I will base my program, aimed to acquire still images in a controlled way, on this one. Since i would be able to change at run time some of the many parameters affecting the acquired image I'm thinking to add a Tcp/I...
by salvato
Mon Sep 09, 2019 9:49 am
Forum: Camera board
Topic: Is there a c library equivalent to picamera ?
Replies: 4
Views: 221

Is there a c library equivalent to picamera ?

I'm looking for a C library similar to the Python picamera one.

There is one available ?

Thank you
by salvato
Sat Aug 10, 2019 5:10 am
Forum: General discussion
Topic: Power on?
Replies: 32
Views: 1448

Re: Power on?

I'm a bit warried about the max current allowed by the LM29159 (1.5A).
is it enough for the new RPi4 ?
by salvato
Mon Jul 29, 2019 9:33 am
Forum: General discussion
Topic: gpio pull up with pigpiod_if2
Replies: 1
Views: 71

[SOLVED] gpio pull up with pigpiod_if2

The answer to my question can be found here: https://github.com/fivdi/pigpio/issues/79 To let others know: "The 2019-06-20-raspbian-buster and 2019-07-10-raspbian-buster images come with V68 of the pigpio C library preinstalled which doesn't support the Raspberry Pi 4." You should download and insta...
by salvato
Mon Jul 29, 2019 8:05 am
Forum: General discussion
Topic: gpio pull up with pigpiod_if2
Replies: 1
Views: 71

gpio pull up with pigpiod_if2

Hi all, I'm facing a problem trying to enable pullups to GPIO pins in Raspberry Pi 4. I have already used the pigpiod library with previous models (up to 3B) without problems but now if i try to enable the pullups with set_pull_up_down(gpioHostHandle, Pin, PI_PUD_UP); the program enter an endless lo...
by salvato
Mon Jul 01, 2019 3:53 pm
Forum: Troubleshooting
Topic: Tried everything and still cannot get any cameras to work
Replies: 10
Views: 403

Re: Tried everything and still cannot get any cameras to work

Hi,

Could you post two images of the cable/connector connections both on the camera side and the Raspberry side ?
The only idea that I have is that the cable could be connected in a wrong way.
by salvato
Sat Jun 22, 2019 11:34 am
Forum: C/C++
Topic: Weird artifacts on dot matrix display
Replies: 14
Views: 1436

Re: Weird artifacts on dot matrix display

Probaly also...you should first define that a pin should be used as a digital output and then assign a value: void DMD::beginNoTimer() { digitalWrite(pin_clk, LOW); pinMode(pin_clk, OUTPUT); digitalWrite(pin_r_data, LOW); pinMode(pin_r_data, OUTPUT); digitalWrite(pin_noe, LOW); pinMode(pin_noe, OUTP...
by salvato
Thu Jun 20, 2019 3:06 pm
Forum: C/C++
Topic: Weird artifacts on dot matrix display
Replies: 14
Views: 1436

Re: Weird artifacts on dot matrix display

I've not looked into your code but... the Arduino MEGA, if i'm not wrong, works with 5V output levels while the Raspberry works at 3.3V.
Could this originate the problem ?
by salvato
Wed Apr 03, 2019 8:52 am
Forum: Troubleshooting
Topic: Problem with installing qt5
Replies: 5
Views: 206

Re: Problem with installing qt5

petters wrote:
Wed Apr 03, 2019 8:36 am
Is there a way i can see the space left in the partition where qt is to be installed?

Code: Select all

df -H
will show the space left on the SD
by salvato
Wed Apr 03, 2019 8:24 am
Forum: Troubleshooting
Topic: Problem with installing qt5
Replies: 5
Views: 206

Re: Problem with installing qt5

Which model of Raspberry ? Is the space left in the SD card enough ?
I have installed Qt and QtCreator on all my Rapsberry 3 and they works like a charm.
In the model 2 and 2B it is a bit too slow but working too
by salvato
Fri Mar 15, 2019 9:47 am
Forum: Graphics programming
Topic: Qt
Replies: 23
Views: 4323

Re: Qt

Well, I got it installed, sadly my RPi 3B+ is not powerful enough for it. It loads but if I try such a simple thing as enlarging it, it crashes instantly. This is a bit strange. I use every day qtcreator on my Raspberry 3B (not plus) and it works very well. Is the free space in your SD card big eno...
by salvato
Thu Mar 14, 2019 11:56 am
Forum: Graphics programming
Topic: Qt
Replies: 23
Views: 4323

Re: Qt

DirkS wrote:
Thu Mar 14, 2019 9:30 am
salvato wrote:
Thu Mar 14, 2019 5:33 am

Code: Select all

sudo apt install qtcreator
G.S.
Gepruefte Sicherheit https://en.wikipedia.org/wiki/Gepr%C3%BCfte_Sicherheit ?
No ! just my initials...
by salvato
Thu Mar 14, 2019 5:33 am
Forum: Graphics programming
Topic: Qt
Replies: 23
Views: 4323

Re: Qt

Code: Select all

sudo apt install qtcreator
G.S.
by salvato
Wed Mar 06, 2019 4:30 pm
Forum: General discussion
Topic: [SOLVED]Help with missing /proc/bus/usb
Replies: 2
Views: 158

Re: [SOLVED]Help with missing /proc/bus/usb

Yes you are right:

Code: Select all

sudo fxload -D /dev/bus/usb/001/007 -I niusbb_firmware.hex -s niusbb_loader.hex
solved the problem.
Thank you very much

Go to advanced search