jpiat / arduino

113 stars 70 forks source link

Hello #2

Open mahmutdur opened 8 years ago

mahmutdur commented 8 years ago

I run your receiver project but always made this error LiFiReceiver.ino:47:86: error: use of enum 'receiver_state' without previous declaration

what is that

Thank you

jpiat commented 8 years ago

This problem occurs if you use the arduino llc ide instead of http://arduino.orgarduino. http://arduino.orgcc ide ( https://www.arduino.cc/)

I run your receiver project but always made this error LiFiReceiverino:47:86: error: use of enum 'receiver_state' without previous declaration

what is that

Thank you

— Reply to this email directly or view it on GitHub https://github.com/jpiat/arduino/issues/2.

greengsm commented 8 years ago

How to compile your code to use examples. For me the same error

jpiat commented 8 years ago

Please use the arduino.cc IDE to compile the code : https://www.arduino.cc/en/Main/Software

2016-02-01 21:20 GMT+01:00 greengsm notifications@github.com:

How to compile your code to use examples. For me the same error

— Reply to this email directly or view it on GitHub https://github.com/jpiat/arduino/issues/2#issuecomment-178169121.

amirezz commented 8 years ago

Thanks Jpiat for the update code it is really very helpful one .I wondered can i make the msg came from serial port( write on serial monitor at the emitter side and see the received message on the receiver arduino board serial monitor on anther pc)
thanks in advance

jpiat commented 8 years ago

This is already implemented. On the emitter side, if you uncomment the define :

//#define TRANSMIT_SERIAL

the input data will be received on the serial port.

2016-02-09 8:47 GMT+01:00 amirezz notifications@github.com:

Thanks Jpiat for the update code it is really very helpful one .I wondered can i make the msg came from serial port( write on serial monitor at the emitter side and see the received message on the receiver arduino board serial monitor on anther pc)

thanks in advance

— Reply to this email directly or view it on GitHub https://github.com/jpiat/arduino/issues/2#issuecomment-181749233.

amirezz commented 8 years ago

thank you very much .it works

amirezz commented 8 years ago

dear jpiat thanks for your helpful code and also for you quick support . now i have that project working very well .but i need some Clarification to can explain that project as it is module هin my graduation project and need to explain the code also . my question in receiver side about (&(frame_buffer[1])) why i must use ( & ) and 1 are it pointer of framindex or frame size or anther pointer else thanks in advance

jpiat commented 8 years ago

&(frame_buffer[1]) is because the first character of the frame buffer is the STX indicator which is not printable. Doing frame_buffer[1], takes the second character of the frame_buffer (start of the text message) and adding the & permits to recover the pointer on this second character since println expect a char * for its argument. What is your graduation project about ? Did you make any addition to the code ?

2016-02-18 9:47 GMT+01:00 amirezz notifications@github.com:

dear jpiat thanks for your helpful code and also for you quick support . now i have that project working very well .but i need some Clarification to can explain that project as it is module هin my graduation project and need to explain the code also . my question in receiver side about (&(frame_buffer[1])) why i must use ( & ) and 1 are it pointer of framindex or frame size or anther pointer else thanks in advance

— Reply to this email directly or view it on GitHub https://github.com/jpiat/arduino/issues/2#issuecomment-185602789.

amirezz commented 8 years ago

thanks for your support .my graduation project about emergency interrupt of the Traffic Signal Lights (i.e ambulance sends light message to the traffic signal lights to set the red sign and after pass the ambulance make it green again ) so i modified that code as when receiver side have that message emrg (emergency) it set red sign and the ambulance send message go to set it green again

imayyami commented 7 years ago

hi, may i see your hardware sirkuit?