Hey guys, i would like to give it a try to the SX1276 chip, in order to send/recevice messages using LoRa on a toit program.. i have been checking the code you provided for the RFM95 chip, i detail (below) the code analysis i could perform, really i dont know where to start to adapt the code and make it work for the SX1276; any help and/or guidance is very much appreciated
Here my comments/notes after reading the code:
RFM95 Toit driver
Code overview:
361 lines of code
Uses gpio, monitor, serial and spi librarys
- line 9, main block configures spi, device and lora device
- line 23, read task, just prints/acknowledges whatever is received
- line 28, main loop, sends "hello world" + counter, sleeps 1sec
- line 35 to 89, constants config
- line 98: constructor device/serial.Device
- line 135: set_mode_ method
- line 142: write method
- line 172: read method
- line 204 to 361, the rest of the methods of the RFM95 class
is_transmitting_:
set_coding_rate4 denominator:
set_preamble_length length:
set_spreading_factor sf:
set_signal_bandwidth sbw:
get_signal_bandwidth:
enable_crc:
disable_crc:
get_spreading_factor:
explicit_header_mode_:
implicit_header_mode_:
set_tx_power_ level boost:
set_frequency_ hz:
set_OCP_ mA:
set_ldo_flag_:
sleep_: