proch142
First of all, I had successfully created library for other follow your tutorial here: How to add my FBD to default POUs(library) - OpenPLC Forum (discussion.community) and it work.
When i create my new library for my sensor like DHT21, I had followed code at file ds18b20 in arduino.h, aduino.txt and regarding that. My question is in file arduino_libs.h what name I must use, and this is only place I must define this or other place?, for example, you use. 
#ifdef USE_DS18B20_BLOCK
    #include "modules/ds18b20.c"
#endif
for ds18b20.c library. 
Thanks!
 
add_dht_lib_question.png
Reply 0 0
thiagoralves
Check line 588 onward where all defines are placed. Then you can use your custom define to #include your dht.c module or not.
 
By the way, once you successfully create blocks like that, please contribute back to the project. Post your code here or submit a PR on Github, so everyone can benefit from your work.
Reply 1 0
Reply