Skip to content

Commit 1707ea7

Browse files
committed
hotfix for keyword
1 parent 49ec914 commit 1707ea7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@
614614
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)})}
615615
</script>
616616
<script type="text/javascript">
617-
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"};
617+
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"};
618618
</script>
619619
<title></title>
620620
</head>

src/GPIOLibrary/keywords/GPIOKeywords.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def set_pin_low(self, channel: str):
4040
GPIO.output(int(channel), GPIO.LOW)
4141

4242
@keyword("Is Pin Low")
43-
def is_pin_high(self, channel: str) -> bool:
43+
def is_pin_low(self, channel: str) -> bool:
4444
"""
4545
Checks the given pin is low
4646
"""

0 commit comments

Comments
 (0)