From: Peter Hinch Date: Mon, 9 Mar 2020 08:32:17 +0000 (+0000) Subject: Git confusion. Save receiver test. X-Git-Url: https://vault307.fbx.one/gitweb/micorpython_ir.git/commitdiff_plain/e5768db31f053f95c6f6ede39346281e78cafb04 Git confusion. Save receiver test. --- diff --git a/README.md b/README.md index 1e1fa25..3c78771 100644 --- 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). +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`