Explorar el Código

transmit example: move to examples folder, adapt frequency, minimal baud rate

Fabian Peter Hammerle hace 3 años
padre
commit
7295527c79
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      examples/transmit.py

+ 2 - 2
example.py → examples/transmit.py

@@ -8,8 +8,8 @@ logging.basicConfig(level=logging.INFO)
 
 with cc1101.CC1101() as transceiver:
     print("defaults:", transceiver)
-    transceiver.set_base_frequency_hertz(433e6)
-    transceiver.set_symbol_rate_baud(1000)
+    transceiver.set_base_frequency_hertz(433.5e6)
+    transceiver.set_symbol_rate_baud(600)
     print(transceiver)
     print("state", transceiver.get_marc_state().name)
     print("base frequency", transceiver.get_base_frequency_hertz(), "Hz")