]> vault307.fbx.one Git - micorpython_ir.git/commitdiff
Git confusion. Save receiver test.
authorPeter Hinch <peter@hinch.me.uk>
Mon, 9 Mar 2020 08:32:17 +0000 (08:32 +0000)
committerPeter Hinch <peter@hinch.me.uk>
Mon, 9 Mar 2020 08:32:17 +0000 (08:32 +0000)
README.md

index 1e1fa25b39e2374ea9718214a92945c219b009fc..3c78771b3cdb325a264ee73bce8d6d4b9c7fbba9 100644 (file)
--- a/README.md
+++ b/README.md
@@ -147,6 +147,15 @@ Method:
  it will be called if an error occurs. The value corresponds to the error code
  (see below).
 
  it will be called if an error occurs. The value corresponds to the error code
  (see below).
 
+A function is provided to print errors in human readable form. This may be
+invoked as follows:
+
+```python
+from ir_rx.print_error import print_error  # Optional print of error codes
+# Assume ir is an instance of an IR receiver class
+ir.error_function(print_error)
+```
+
 #### NEC classes
 
 `NEC_8`, `NEC_16`
 #### NEC classes
 
 `NEC_8`, `NEC_16`