I have followed your tutorial on Thonny, which was great. I now want to add an external library from Adafruit, for the SI1145 UV sensor, I have tried to use the options under ‘Tools’, but am lost to know what to download and how to do it
It sounds like I have found the subject for another Thonny Tutorial..
Hello Phil. Yes, we’ll add details about that in the next update. In the meanwhile, here’s how you do it:
- Create a new file in Thonny IDE
- Save the new file with the exact library name, for example: si1145.py
- Then, in Thonny IDE go to the “Device” menu > “Upload current script with current name”
That’s how you import a library or a file with a different name (rather than boot.py or main.py). Let me know if that works for you.
Thank you, yes that worked a treat, after I had found the correct version for the ESP8266 and not the Raspberry Pi !
I’m looking forward to more Thonny tutorials.