From de67c12628508aee10b4458719664813d91b4194 Mon Sep 17 00:00:00 2001 From: Tomas Krejci Date: Fri, 17 May 2024 00:13:01 +0200 Subject: [PATCH] up --- lib/olt_lib/ir_tx/__init__.py | 9 +++------ lib/olt_lib/ir_tx/olt.py | 6 ++---- lib/olt_lib/ir_tx/test.py | 8 +++----- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/lib/olt_lib/ir_tx/__init__.py b/lib/olt_lib/ir_tx/__init__.py index 7845b29..3e28ec6 100644 --- a/lib/olt_lib/ir_tx/__init__.py +++ b/lib/olt_lib/ir_tx/__init__.py @@ -1,9 +1,6 @@ -# __init__.py Nonblocking IR blaster -# Runs on Pyboard D or Pyboard 1.x (not Pyboard Lite), ESP32 and RP2 +# __init__.py Nonblocking OpenLaserTag IR transmitter +# Tomas Krejci [Njord] -# Released under the MIT License (MIT). See LICENSE. - -# Copyright (c) 2020-2021 Peter Hinch from sys import platform ESP32 = platform == 'esp32' # Loboris not supported owing to RMT RP2 = platform == 'rp2' @@ -136,7 +133,7 @@ class IR: # Given an iterable (e.g. list or tuple) of times, emit it as an IR stream. class Player(IR): - def __init__(self, pin, freq=38000, verbose=False, asize=68): # NEC specifies 38KHz + def __init__(self, pin, freq=56000, verbose=False, asize=68): # NEC specifies 38KHz super().__init__(pin, freq, asize, 33, verbose) # Measured duty ratio 33% def play(self, lst): diff --git a/lib/olt_lib/ir_tx/olt.py b/lib/olt_lib/ir_tx/olt.py index 116df5f..ca0c4c4 100644 --- a/lib/olt_lib/ir_tx/olt.py +++ b/lib/olt_lib/ir_tx/olt.py @@ -1,8 +1,6 @@ -# sony.py Encoder for IR remote control using synchronous code +# Encoder for OpenLaserTag IR transmitter using synchronous code # Sony SIRC protocol. - -# Author: Peter Hinch -# Copyright Peter Hinch 2020 Released under the MIT license +# Tomas Krejci [Njord] from micropython import const from olt_lib.ir_tx import IR diff --git a/lib/olt_lib/ir_tx/test.py b/lib/olt_lib/ir_tx/test.py index e17a0b1..d31f7d3 100644 --- a/lib/olt_lib/ir_tx/test.py +++ b/lib/olt_lib/ir_tx/test.py @@ -1,8 +1,6 @@ -# ir_tx.test Test for nonblocking NEC/SONY/RC-5/RC-6 mode 0 IR blaster. - -# Released under the MIT License (MIT). See LICENSE. - -# Copyright (c) 2020 Peter Hinch +# ir_tx.test Test for nonblocking OpenLaserTag/SONY IR transmitter. +# Sony SIRC protocol. +# Tomas Krejci [Njord] # Implements a 2-button remote control on a Pyboard with auto repeat. from sys import platform