martynwheeler / u-lora

raspi-lora for micropython
GNU General Public License v3.0
74 stars 13 forks source link

Works under 915MHz? #7

Open andreltr opened 2 years ago

andreltr commented 2 years ago

Hello,

Does it works under 915MHz?

Regards,

Andre Luiz

SailingGreg commented 2 years ago

Andre, you should be able to set the frequency to 915MHz as it is controlled by the device but note that in the UK 868 MHz is used as this is exempt from licenced

    # set frequency
    frf = int((self._freq * 1000000.0) / FSTEP)
    self._spi_write(REG_06_FRF_MSB, (frf >> 16) & 0xff)
    self._spi_write(REG_07_FRF_MID, (frf >> 8) & 0xff)
    self._spi_write(REG_08_FRF_LSB, frf & 0xff)