@@ -1,5 +1,4 @@
#!/usr/bin/python3
-# TODO: add 'out' and 'in' as almost-synonyms for 'write' and 'read'
"""
This is a clone of the 'gpio/WiringPi' project, written specifically for the
OrangePi i96.
@@ -600,6 +599,8 @@ if __name__ == "__main__":
"mode":do_mode,
"read":do_read,
"write":do_write,
+ "in":do_read,
+ "out":do_write,
"exports":do_exports}
f = switcher.get(args.cmd)
if not f: