This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(e, s) { | |
e.src = s; | |
e.onload = function() { | |
alert('gist injected'); | |
}; | |
document.head.appendChild(e); | |
})(document.createElement('script'), 'https://gist.githubusercontent.com/anonymous/d6004fc355bf7c4a41cbfa3d746c350e/raw/591a1c972b33dbef58bdeed7b95560d80b547e85/ek21.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $1 == 'CH1' ] ; then # gpio 26, PIN37 | |
ch=425 | |
elif [ $1 == 'CH2' ] ; then # gpio 20, PIN38 | |
ch=419 | |
elif [ $1 == 'CH3' ]; then # gpio 21, PIN40 | |
ch=420 | |
else | |
echo "Parameter error" |