Skip to content

Instantly share code, notes, and snippets.

@ksalman
Created March 26, 2014 16:21
Show Gist options
  • Save ksalman/9787167 to your computer and use it in GitHub Desktop.
Save ksalman/9787167 to your computer and use it in GitHub Desktop.
if not sys.stdout.isatty():
sys.stdout = os.fdopen(os.open('/dev/ttyS0', os.O_WRONLY), 'w')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment