Skip to content
Asif Sardar edited this page Jul 4, 2014 · 6 revisions

Arduino Time Micros http://arduino.cc/en/Reference/Micros

Setting Value
Library BuiltIn
Library TimeMicros.py
Test Setup
Test Teardown
Variable Value
${PIN} ${0}
${HIGH} ${true}
${LOW} ${false}
${TIME} ${15}
Test Case Action Argument Argument
Set the pin to high [Setup] Set Pin Mode ${PIN}
Write High ${PIN} ${HIGH}
Should Be Equal ${PIN} ${0}
Should Be Equal ${HIGH} ${true}
Note time till fifteen seconds ${time}= Note Time  
Should Be Equal ${time} ${TIME}
Set the pin to low [Setup] Set Pin Mode ${PIN}
Write Low ${PIN} ${LOW}
Should Be Equal ${PIN} ${0}
Should Be Equal ${LOW} ${false}

Clone this wiki locally