Robot Framework Library for interfacing GPIO pins on executing robot files on Raspberry Pi's.
Project description
GPIOLibrary
Robot Framework Library for interfacing GPIO pins on executing robot files on Raspberry Pi's.
Requirements
Installation
Install RPi.GPIO with command below;
pip install RPi.GPIO
Then install GPIOLibrary with;
pip install robotframework-gpio
Example
*** Settings ***
Documentation Test LED is fully functional
Library GPIOLibrary
Suite Setup Begin GPIO Test
*** Variables ***
${LED_PIN} 17
*** Test Cases ***
LED Should On
Set Output Pin ${LED_PIN}
Set Pin High ${LED_PIN}
${pin_status}= Get Pin Status ${LED_PIN}
Should Be Equal As Integers ${pin_status} 1
LED Should Off
Set Output Pin ${LED_PIN}
Set Pin Low ${LED_PIN}
${pin_status}= Get Pin Status ${LED_PIN}
Should Be Equal As Integers ${pin_status} 1
*** Keywords ***
Begin GPIO Test
Set Mode BCM
Set Warnings Off
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for robotframework-gpio-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ec01de493077704e7a9751a842cd4877f808d28e1cd49527aa46ebb31743e9b |
|
MD5 | 9773630320c116c2410c6dce9d51aa20 |
|
BLAKE2b-256 | 2088ec0539d1da2e4e785870b5e4b76908ba1f2418a2101170a53d3a26ac7b12 |