serial available()
hi
i have been playing serial port, used example programme , modified little have been thinking...
i understand serialbegin() sets baud rate why serial available doing? have looked around nothing says doing. in context i've seen in, says serial available > 0 so guess means looking sort of data or something. i'm not computer genius in simple terms command doing??
you'd think serialread() doing same thing reading serial port. serialread , done it, if 0 or 0 v coming down serial port programme ignore it? don't know!!
as final question...
the arduino language c. i've bought getting started arduino book , book there online free training course me understand language? have done c++ course few years ago , has helped me lot understanding arduino language. arduino language has own commands distinctive it.
as final point, arduino amazing piece of equipment , have been telling listen me it!!!
ps
i reading arduino understands when series of commands being used run continuously pwm on motor. programme moves top bottom runnnig each command sequentially. if had programme putting out pwm signals if delays written in rights whole programme otherwise stop sending signals run motor. arduino smart enough understand intend programme keep sending pwm signals motor regardless. i haven't written yet see if case!!
the beauty of arduino there fanatastic backup, simplifies whole process of controlling physical stuff, don't need have studied computing programming 20 years know enough stuff make work. other products nightmarish.
thanks again
as further final point suppose wouldn't bad idea starting arduino club in home town, theres @ least 1 other person have introduced seem enthused on it. face face contact , meetings learning tool?
i have been playing serial port, used example programme , modified little have been thinking...
i understand serialbegin() sets baud rate why serial available doing? have looked around nothing says doing. in context i've seen in, says serial available > 0 so guess means looking sort of data or something. i'm not computer genius in simple terms command doing??
you'd think serialread() doing same thing reading serial port. serialread , done it, if 0 or 0 v coming down serial port programme ignore it? don't know!!
as final question...
the arduino language c. i've bought getting started arduino book , book there online free training course me understand language? have done c++ course few years ago , has helped me lot understanding arduino language. arduino language has own commands distinctive it.
as final point, arduino amazing piece of equipment , have been telling listen me it!!!
ps
i reading arduino understands when series of commands being used run continuously pwm on motor. programme moves top bottom runnnig each command sequentially. if had programme putting out pwm signals if delays written in rights whole programme otherwise stop sending signals run motor. arduino smart enough understand intend programme keep sending pwm signals motor regardless. i haven't written yet see if case!!
the beauty of arduino there fanatastic backup, simplifies whole process of controlling physical stuff, don't need have studied computing programming 20 years know enough stuff make work. other products nightmarish.
thanks again
as further final point suppose wouldn't bad idea starting arduino club in home town, theres @ least 1 other person have introduced seem enthused on it. face face contact , meetings learning tool?
quote
why serial available doing?
i presume mean "what the". incoming serial data stored in ring buffer. serial.available() function returns number of bytes of data in buffer. in other words, tells whether there data read, , how much.
serial.read(), when there no data read, returns -1, know value not valid. so, theoretically, serial.available() call not required, makes looping collect serial data easier.
quote
the arduino language c.
that's because is. well, c++, super-set of c.
quote
the arduino language has own commands distinctive it.
no. arduino has own libraries , functions.
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > serial available()
arduino
Comments
Post a Comment