This commit is contained in:
Tomas Krejci 2024-05-17 00:13:01 +02:00
parent 3e099d288e
commit de67c12628
3 changed files with 8 additions and 15 deletions

View File

@ -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):

View File

@ -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

View File

@ -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