well... I made a different modification:
I changed the row
IOBASE := $(shell cat /proc/iomem | grep bcm2708_vcio | cut -f 1 -d "-")
in
IOBASE := 20000000
(3F000000 in your case)
well... I made a different modification:
I changed the row
IOBASE := $(shell cat /proc/iomem | grep bcm2708_vcio | cut -f 1 -d "-")
in
IOBASE := 20000000
(3F000000 in your case)
Hi, I don't know if this is easy to do but if if the red needle and the mirror are in different positions you could use a sort of flip-flop having two sensors one that set the FF and the other that reset it.
@bisschopsr said:
TCRT5000 module...
What happens if the mirror is barely in position to reflect and the counter stay at rest or is moving very slowly?
I'm afraid that it will trigger many false events instead of just one (maybe depending on the ambient light).
Probably using a couple of detectors and trigger only when both see the reflection can help.
Hi,
I think that your problem is that you are using a "variable" (msg) that you never declare.
C++ requires that every variable used MUST have a type and be declared in advance.
Inserting a declaration:
MyMessage msg;
should fix your problem. Let us know.
Ciao
well... I made a different modification:
I changed the row
IOBASE := $(shell cat /proc/iomem | grep bcm2708_vcio | cut -f 1 -d "-")
in
IOBASE := 20000000
(3F000000 in your case)
@alexsh1
Happy to have solved your problem.
Hello.
I think that the problem related to the messsage:
error: invalid suffix "x" on integer constant
come from a problem in the Makefile of the librf24-bcm.
There you can find the following line:
IOBASE := $(shell cat /proc/iomem | grep bcm2708_vcio | cut -f 1 -d "-")
This try to find the memory base address of the peripherals in the Raspberry that is variable between the different models.
In my Raspberry the /proc/iomem file does not contain any information about bcm2708_vcio and the string returned is empty (in my case should be 0x20000000)
You could try to hard code the correct value in the Makefile.
Hope this help