Advertisement
sunu

ArduinoFuncMethods

Jan 16th, 2012
110
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Arduino functions
  2.  
  3. Digital I/O:
  4. pinMode()
  5. digitalRead()
  6. digitalWrite()
  7.  
  8. Analog I/O:
  9. analogRead()
  10. analogWrite()
  11.  
  12. Time:
  13. millis()
  14. micros()
  15. delay()
  16. delayMicroseconds()
  17.  
  18. Math:
  19. min()
  20. max()
  21. abs()
  22. constrain()
  23. map()
  24. pow()
  25. sqrt()
  26.  
  27. Trigonometry:
  28. sin()
  29. cos()
  30. tan()
  31.  
  32. Random Numbers:
  33. randomSeed()
  34. random()
  35.  
  36. Interrupts:
  37. attachInterrupt()
  38. detachInterrupts()
  39.  
  40. Serial:
  41. begin()
  42. end()
  43. available()
  44. read()
  45. peek()
  46. flush()
  47. print()
  48. println()
  49. write()
  50.  
  51. Bit&Bytes:
  52. lowByte()
  53. highByte()
  54. bitRead()
  55. bitWrite()
  56. bitSet()
  57. bitClear()
  58. bit()
  59.  
  60. lcd:
  61. lcd.begin()
  62. lcd.begin(16,2)
  63. lcd.setCursor()
  64. lcd.setCursor(0,1)
  65. lcd.print()
  66. lcd.print("Hello ")
  67. //Clears the LCD screen and positions the cursor in the upper-left corner.
  68. lcd.clear()
  69. lcd.display()
  70. lcd.noDisplay()
  71. // Turn off the blinking cursor:
  72. lcd.noBlink();
  73. // Turn on the blinking cursor:
  74. lcd.blink();
  75. // set the display to automatically scroll:
  76. lcd.autoscroll();
  77. // turn off automatic scrolling
  78. lcd.noAutoscroll();
Advertisement
RAW Paste Data Copied
Advertisement