Esempio n. 1
0
        public void InitAllValue()
        {
            bbPayload.ContextMenuStrip.Enabled = false;
            if (ChipVer != ucLoRa.ChipSet.RF92 && ChipVer != ucLoRa.ChipSet.RF96)
                ChipVer = ucLoRa.ChipSet.RF96;

            if (ChipVer == ucLoRa.ChipSet.RF92)
                rfm92.RegOpMode.Value = 129;
            else if (nudRadioFreq.Value < new Decimal(525000000))
                rfm96.RegOpMode.Value = 137;
            else
                rfm96.RegOpMode.Value = 129;
        }
Esempio n. 2
0
 public bool GetVersion()
 {
     byte data = 0;
     if (!ftdi.ReadByte(rfm92.RegVersion.Address, ref data))
         return false;
     ChipVer = (ucLoRa.ChipSet)data;
     return true;
 }