Skip to content

Commit

Permalink
hotfix for keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufcanb committed Dec 17, 2021
1 parent 49ec914 commit 1707ea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@
jQuery.extend({highlight:function(e,t,n,r){if(e.nodeType===3){var i=e.data.match(t);if(i){var s=document.createElement(n||"span");s.className=r||"highlight";var o=e.splitText(i.index);o.splitText(i[0].length);var u=o.cloneNode(true);s.appendChild(u);o.parentNode.replaceChild(s,o);return 1}}else if(e.nodeType===1&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&!(e.tagName===n.toUpperCase()&&e.className===r)){for(var a=0;a<e.childNodes.length;a++){a+=jQuery.highlight(e.childNodes[a],t,n,r)}}return 0}});jQuery.fn.unhighlight=function(e){var t={className:"highlight",element:"span"};jQuery.extend(t,e);return this.find(t.element+"."+t.className).each(function(){var e=this.parentNode;e.replaceChild(this.firstChild,this);e.normalize()}).end()};jQuery.fn.highlight=function(e,t){var n={className:"highlight",element:"span",caseSensitive:false,wordsOnly:false};jQuery.extend(n,t);if(e.constructor===String){e=[e]}e=jQuery.grep(e,function(e,t){return e!=""});e=jQuery.map(e,function(e,t){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")});if(e.length==0){return this}var r=n.caseSensitive?"":"i";var i="("+e.join("|")+")";if(n.wordsOnly){i="\\b"+i+"\\b"}var s=new RegExp(i,r);return this.each(function(){jQuery.highlight(this,s,n.element,n.className)})}
</script>
<script type="text/javascript">
libdoc = {"all_tags":[],"contains_tags":false,"doc":"<p>Documentation for library <code>GPIOLibrary\x3c/code>.\x3c/p>","generated":"2021-12-17 17:34:39","inits":[],"keywords":[{"args":[],"doc":"<p>Resets board to initial state.\x3c/p>","matched":true,"name":"Clean Up Board","shortdoc":"Resets board to initial state.","tags":[]},{"args":["mode: str"],"doc":"<p>Gets board numbering mode. Either BCM or BOARD\x3c/p>","matched":true,"name":"Get Mode","shortdoc":"Gets board numbering mode. Either BCM or BOARD","tags":[]},{"args":["channel: str"],"doc":"<p>Returns the current status of given pin\x3c/p>","matched":true,"name":"Get Pin Status","shortdoc":"Returns the current status of given pin","tags":[]},{"args":["channel: str"],"doc":"<p>Checks the given pin is low\x3c/p>","matched":true,"name":"Is Pin Low","shortdoc":"Checks the given pin is low","tags":[]},{"args":["channel: str"],"doc":"<p>Setup GPIO channel or list of channels as input.\x3c/p>","matched":true,"name":"Set Input Pin","shortdoc":"Setup GPIO channel or list of channels as input.","tags":[]},{"args":["mode: str"],"doc":"<p>Sets board numbering mode. Either BCM or BOARD\x3c/p>","matched":true,"name":"Set Mode","shortdoc":"Sets board numbering mode. Either BCM or BOARD","tags":[]},{"args":["channel: str"],"doc":"<p>Setup GPIO channel or list of channels as output.\x3c/p>","matched":true,"name":"Set Output Pin","shortdoc":"Setup GPIO channel or list of channels as output.","tags":[]},{"args":["channel: str"],"doc":"<p>Sets given pin high\x3c/p>","matched":true,"name":"Set Pin High","shortdoc":"Sets given pin high","tags":[]},{"args":["channel: str"],"doc":"<p>Sets given pin low\x3c/p>","matched":true,"name":"Set Pin Low","shortdoc":"Sets given pin low","tags":[]},{"args":[],"doc":"<p>Disable GPIO usage warnings.\x3c/p>","matched":true,"name":"Set Warnings Off","shortdoc":"Disable GPIO usage warnings.","tags":[]},{"args":[],"doc":"<p>Enable GPIO usage warnings.\x3c/p>","matched":true,"name":"Set Warnings On","shortdoc":"Enable GPIO usage warnings.","tags":[]}],"name":"GPIOLibrary","named_args":true,"scope":"GLOBAL","version":"0.2.0"};
libdoc = {"all_tags":[],"contains_tags":false,"doc":"<p>Documentation for library <code>GPIOLibrary\x3c/code>.\x3c/p>","generated":"2021-12-17 17:42:52","inits":[],"keywords":[{"args":[],"doc":"<p>Resets board to initial state.\x3c/p>","matched":true,"name":"Clean Up Board","shortdoc":"Resets board to initial state.","tags":[]},{"args":["mode: str"],"doc":"<p>Gets board numbering mode. Either BCM or BOARD\x3c/p>","matched":true,"name":"Get Mode","shortdoc":"Gets board numbering mode. Either BCM or BOARD","tags":[]},{"args":["channel: str"],"doc":"<p>Returns the current status of given pin\x3c/p>","matched":true,"name":"Get Pin Status","shortdoc":"Returns the current status of given pin","tags":[]},{"args":["channel: str"],"doc":"<p>Checks given the pin is high\x3c/p>","matched":true,"name":"Is Pin High","shortdoc":"Checks given the pin is high","tags":[]},{"args":["channel: str"],"doc":"<p>Checks the given pin is low\x3c/p>","matched":true,"name":"Is Pin Low","shortdoc":"Checks the given pin is low","tags":[]},{"args":["channel: str"],"doc":"<p>Setup GPIO channel or list of channels as input.\x3c/p>","matched":true,"name":"Set Input Pin","shortdoc":"Setup GPIO channel or list of channels as input.","tags":[]},{"args":["mode: str"],"doc":"<p>Sets board numbering mode. Either BCM or BOARD\x3c/p>","matched":true,"name":"Set Mode","shortdoc":"Sets board numbering mode. Either BCM or BOARD","tags":[]},{"args":["channel: str"],"doc":"<p>Setup GPIO channel or list of channels as output.\x3c/p>","matched":true,"name":"Set Output Pin","shortdoc":"Setup GPIO channel or list of channels as output.","tags":[]},{"args":["channel: str"],"doc":"<p>Sets given pin high\x3c/p>","matched":true,"name":"Set Pin High","shortdoc":"Sets given pin high","tags":[]},{"args":["channel: str"],"doc":"<p>Sets given pin low\x3c/p>","matched":true,"name":"Set Pin Low","shortdoc":"Sets given pin low","tags":[]},{"args":[],"doc":"<p>Disable GPIO usage warnings.\x3c/p>","matched":true,"name":"Set Warnings Off","shortdoc":"Disable GPIO usage warnings.","tags":[]},{"args":[],"doc":"<p>Enable GPIO usage warnings.\x3c/p>","matched":true,"name":"Set Warnings On","shortdoc":"Enable GPIO usage warnings.","tags":[]}],"name":"GPIOLibrary","named_args":true,"scope":"GLOBAL","version":"0.2.0"};
</script>
<title></title>
</head>
Expand Down
2 changes: 1 addition & 1 deletion src/GPIOLibrary/keywords/GPIOKeywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def set_pin_low(self, channel: str):
GPIO.output(int(channel), GPIO.LOW)

@keyword("Is Pin Low")
def is_pin_high(self, channel: str) -> bool:
def is_pin_low(self, channel: str) -> bool:
"""
Checks the given pin is low
"""
Expand Down

0 comments on commit 1707ea7

Please sign in to comment.