toucan-2e735c
hi all,

thanks for this great software. I was trying out the arduino extension and wanted to play around with a DHT11 sensor. I couldnt find any menu to install the "DHT.h" library so I did it with the arduino-cli-l64 bin in this repo.

is this how I am supposed to install missing dependencies in my arduino code? from cli?

and also, Im using a nodemcu (esp8266) and afaik the cpu clock speed is 80MHz or 160MHz. esptool.py in the openplc editor (when uploading) reports a Crystal Frequency of 26MHz. how can I change the cpu frequency for the board? (and maybe also the serial upload speed).

Reply 0 0
thiagoralves
OpenPLC Editor does not manage Arduino dependencies. You will have to install any library you want to use with an Arduino Extension on OpenPLC through the Arduino IDE first (or arduino-cli as you did).
 
As for the NodeMCU, OpenPLC compiles the code through arduino-cli with default settings. I'm not sure which settings are used by default. You can check on specific arduino-cli configurations in the hals.json file (editor/arduino/examples/Baremetal/hals.json)
Reply 0 0
Reply