You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, many thanks for your excellent work with this library! The extensive examples have made this library a pleasure to use.
Looking at the datasheet for the SX1278, it appears that it is possible to set an action for "LOW BATTERY" warning. I have looked through the library and searched the wiki, but i can find no relevance to any kind of "SET_DIO_ACTION" for this event.
Has this feature been implemented in this library? If not, is there a way in which I can write a register to enable DIO0 to change state when this low battery condition is reached?
Apologies if this has already been answered...
Many thanks in advance.
Regards
Brynod
The text was updated successfully, but these errors were encountered:
At the moment, this is not implemented - simply because there was no such request. Although it may be a good idea to add this, since other modules like SX126x implement some sort of low battery indicator interrupt as well if I recall correctly.
is there a way in which I can write a register to enable DIO0 to change state
Yes, RadioLib has a godmode which can be enabled by defining RADIOLIB_GODMODE e.g. in src/BuildOptUser.h. When enabled, it will allow you access to all low-level functions including raw register writes, using something like this:
Module* mod = radio.getMod();
mod->SPIsetRegValue(address, value); // see Module class documentation for details
@Brynod FYI I added this as setLowBatteryThrehold(level, pin). Example usage: radio.setLowBatteryThrehold(RADIOLIB_SX127X_LOW_BAT_THRESHOLD_2_045_V, 0); to enable 2.045 V detector at pin DIO0. One caveat: the datasheet is not entirely clear whether this functionality is only available for FSK modem. Please let me know if there are any issues.
Good evening,
First of all, many thanks for your excellent work with this library! The extensive examples have made this library a pleasure to use.
Looking at the datasheet for the SX1278, it appears that it is possible to set an action for "LOW BATTERY" warning. I have looked through the library and searched the wiki, but i can find no relevance to any kind of "SET_DIO_ACTION" for this event.
Has this feature been implemented in this library? If not, is there a way in which I can write a register to enable DIO0 to change state when this low battery condition is reached?
Apologies if this has already been answered...
Many thanks in advance.
Regards
Brynod
The text was updated successfully, but these errors were encountered: