Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:iot-open:programming_fundamentals_rtu:timing [2018/01/31 13:31] Agrisniken:iot-open:programming_fundamentals_rtu:timing [2020/07/20 09:00] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Timing ====== ====== Timing ======
-There are two functions for the use of timing in the code of Arduino - //delay()// and //millis()//.+There are two functions for the use of timing in the code of Arduino - //delay()// and //millis()//. Although they might look similar, their functionality is different and should be used in different cases.
  
 ===== delay() ===== ===== delay() =====
Line 10: Line 10:
 </code> </code>
  
-The parameter //ms// is the number of milliseconds to pause.+The parameter //ms// is the number of milliseconds to pause. The type should be //unsigned long//.
 The function returns nothing. The function returns nothing.
  
Line 42: Line 42:
  
 This function does not have the input parameters in brackets. This function does not have the input parameters in brackets.
-The return value of the function is the number of milliseconds that has passed since the program was started.+The return value of the function is the number of milliseconds that has passed since the program was started. The type is //unsigned long//.
  
 The example of the function in the code: The example of the function in the code:
en/iot-open/programming_fundamentals_rtu/timing.1517405508.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0