Skip to content

Instantly share code, notes, and snippets.

@efazati
Created November 24, 2014 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save efazati/a0e766869dde429acf62 to your computer and use it in GitHub Desktop.
Save efazati/a0e766869dde429acf62 to your computer and use it in GitHub Desktop.
simple get data
from optparse import OptionParser
import time
import sys
def show_lcd(text):
print text
if __name__ == '__main__':
parser = OptionParser()
parser.add_option("-t", "--text", dest="text")
(options, args) = parser.parse_args()
text = options.text
pulse = options.pulse
# maghadir avalie gerefte mishavad
if not direction or not pulse:
parser.print_help()
else:
show_lcd(text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment