Skip to content
Asif Sardar edited this page Mar 9, 2015 · 9 revisions

Arduino Digital Write http://arduino.cc/en/Reference/DigitalWrite

Setting Value Value
Library BuiltIn  
Library DigitalWrite.py  
Test Setup Set Pin Mode @{SETUP_VAR}
Test Teardown NONE  
Variable Value Value
${PORT}= B  
${PIN}= ${3}  
@{SETUP_VAR}= ${PORT} ${PIN}
Test Case Action Argument Argument Argument
Write high to pin [Documentation] Test Setup: Set the pin mode to output. Test Case: Change state of pin to 'HIGH'.  
${passTest}= Write High ${PORT} ${PIN}
Should Be Equal ${passTest} ${true}  
Write low to pin [Documentation] Test Setup: Set the pin mode to output. Test Case: Change state of pin to 'LOW'.  
${passTest}= Write Low ${PORT} ${PIN}
Should Be Equal ${passTest} ${true}  
Keyword Action Argument Argument Argument
Set Pin Mode [Arguments] @{setupVar}    
${passSetup}= Set Up @{setupVar}[0] @{setupVar}[1]
Should Be Equal ${passSetup} ${true}  

Clone this wiki locally