Ah, ok:) It is supposed to run on an arduino UNO. It is a program that detects radioactivity in counts. I added the program i found in the attachements.
I have no idea why the (int) is there, what does it do?
The (int) is a cast. It forces the value on the right to be interpreted as in int, regardless of what type it actually is. It probably does not need to be there. If i and rate are the same type, the cast is silly. If they are not, an implicit cast will be performed IF NEEDED (which it probably isn't).
Didn't know that:) but then where in the code is the value of the input read? In the papers that I found with it, it said that the input signal should be on pin 2, but I can't find in the code that that value is read.
but I can't find in the code that that value is read.
I can't either, from pictures of the code. Code should be posted as text. If the idiot left you nothing but pictures or printouts, you should track her down and kick her ass.
Well, the idiot did indeed left me only this. No other data to be found sadly enough. So I'm trying to figure out as much as possible from the code, but I'm not even 100% sure that this is the code on the arduino. I'm going to rewrite it, and put some more information in it for the people after me.