Fabian Peter Hammerle
Fabian Peter Hammerle
Hi, plans yes, but it hasn't been implemented yet.
for reference: `SwitchbotCurtain.get_basic_info` returns a boolean "inMotion", which could be used for updating the device state: https://github.com/Danielhiversen/pySwitchbot/blob/0.13.3/switchbot/__init__.py#L709 should be added here: https://github.com/fphammerle/switchbot-mqtt/blob/v3.0.0/switchbot_mqtt/_actors/__init__.py#L160
Hi, you can set the modulation using: ```python with cc1101.CC1101() as transceiver: transceiver._set_modulation_format(cc1101.ModulationFormat.FSK2) # or transceiver._set_modulation_format(cc1101.ModulationFormat.FSK4) # or transceiver._set_modulation_format(cc1101.ModulationFormat.GFSK) # or transceiver._set_modulation_format(cc1101.ModulationFormat.MSK) # or transceiver._set_modulation_format(cc1101.ModulationFormat.ASK_OOK) # default: OOK print(transceiver) ```...
> Me bad, I was too fast opening the issue before looking at the sources. No problem, I also think that the method should be public in the future. >...
https://github.com/LSatan/SmartRC-CC1101-Driver-Lib/blob/0fed1565c699c328a8ede366498d52e77ff28f65/ELECHOUSE_CC1101_SRC_DRV.cpp#L352 sets `FREND0.PA_POWER` to `0b000` for all modulations except from ASK/OOK (`0b001`). This library currently defaults to `0b001` for OOK. You can mimic `SmartRC-CC1101-Driver-Lib`'s `FREND0.PA_POWER` setting by calling `transceiver._set_power_amplifier_setting_index(0)`
Hi @Martingf56, thanks for testing the FSK2 option. That must be a bug. Let's continue the discussion in https://github.com/fphammerle/python-cc1101/issues/23 I'll investigate the issue
@dependabot squash and merge (automatically generated comment)
@dependabot rebase (automatically generated comment)
I justed tested the following code with the new release `v2.6.1`: ```python import logging import time import cc1101 logging.basicConfig(level=logging.INFO) with cc1101.CC1101(lock_spi_device=True) as transceiver: transceiver.set_base_frequency_hertz(433.92e6) # API of private methods is...
@dependabot squash and merge (automatically generated comment)