Open T-vK opened 3 years ago
the gdo_set function in init is a relic of the original elechouse bibliotehk. I should remove it from init as gdo_set is not relevant for the avoided examples. You're right. it is better to include it in set_gdo. Thank you very much, I will consider it in the next update. Regards
done with v2.5.2
I used the following code to save more power:
But then I noticed that my code stopped working. Looking at ELECHOUSE_CC1101_SRC_DRV.cpp I can see that the Init() method calls the GDO_Set() method, which is responsible for setting the pinmode for GDO0 to INPUT. But in the examples you always call Init() before GDO0 has even be set.
So from what I can tell, at the moment there are two options:
1.
2.
Maybe it would make sense to change setGDO to include a call to GDO_Set:
This way the examples could stay the same.