Discussion in 'Microcontrollers, Programming and IoT' started by turbogt16v, Mar 13, 2018.
Hy, simple question.adruino
Analogread is return value of 1025,byte.
Digital read is what,0 and I?
AnalogRead returns a digital representation of the voltage at the analog input. For a 10 bit ADC this maps the input voltage 0 V ... 5 V to a number between 0...1023.
DigitalRead returns the state of a digital input pin, either 1 (logic high) or 0 (logic low).
can someone recommend some ebook that has in depth basic tutorials for arduino coding
I don't know a book, but there are tons of coding examples and tutorials on the web. Either on the arduino homepage or somewhere else. Search "arduino tutorial" for general information or use more specific search terms for special topics.
Don't know of books but on youtube, Jeremy Blum has a series ( about 15) tutorials which go for around 10 minutes each and are reasonably good. Start at No. 1 of course.
It usually helps to actually try each lesson and modify a little on your own just to see the effect. Learn a lot more that way I believe.
As with many of these, it tends to get more involved as one progresses .