sunu icon

ArduinoFuncMethods

sunu | PRO | 01/16/12 12:35:48 PM UTC | 0 ⭐ | 549 👁️ | Never ⏰ | []
text |

1 KB

|

None

|

0 👍

/

0 👎

//Arduino functions
 Digital I/O:
pinMode()
digitalRead()
digitalWrite()
 Analog I/O:
analogRead()
analogWrite()
 Time:
millis()
micros()
delay()
delayMicroseconds()
 Math:
min()
max()
abs()
constrain()
map()
pow()
sqrt()
 Trigonometry:
sin()
cos()
tan()
 Random Numbers:
randomSeed()
random()
 Interrupts:
attachInterrupt()
detachInterrupts()
 Serial:
begin()
end()
available()
read()
peek()
flush()
print()
println()
write()
 Bit&Bytes:
lowByte()
highByte()
bitRead()
bitWrite()
bitSet()
bitClear()
bit()
 lcd:
lcd.begin()
lcd.begin(16,2)
lcd.setCursor()
lcd.setCursor(0,1)
lcd.print()
lcd.print("Hello           ")
//Clears the LCD screen and positions the cursor in the upper-left corner. 
lcd.clear() 
lcd.display()
lcd.noDisplay()
// Turn off the blinking cursor:
lcd.noBlink();
// Turn on the blinking cursor:
lcd.blink();
// set the display to automatically scroll:
lcd.autoscroll();
// turn off automatic scrolling
lcd.noAutoscroll();

Comments