Having issues working with the suggested Thonny IDE. I am on a Mac and the user screen looks different enough to the model in your video that I can’t follow along. Can I use the given code for this sensor in any other IDE? Can the sensor be programmed in https://python.microbit.org/? (Primary school teacher supporting Year 6 STEM team students…)
Hi @Jane278324, Welcome to the Forums!!!
Thonny does have a couple of important windows off by default when you first open it up.
The main one that is missing is Files. This can be found under View > Files
The other one you’ll want to make sure is open is Shell which can be found in the same menu.
The interpreter setting should still be under the Run menu. Just need to check its set to Micropython (BBC Micro:Bit)
Hopefully, that should get you ready to follow along our tutorials for PiicoDev
Other IDE’s can be used, just need to make sure the PiicoDev_Unified and the sensors library are installed on the microbit.
I personally like sticking to Thonny for micropython. Others here might have some good alternatives though.
Thanks so much, Aaron. Your advice got me started .
I now have this error upon loading unified to the micro:bit: - Piicodev uploads with no issues.
I went to github and downloaded the latest version. Then went back to the version on the Core guide. Any thoughts?
Thanks again.
`
Hey @Jane278324,
By the look of that error, it seems like you may have saved the unified file incorrectly? The code you have provided looks like website HTML code which shouldn’t be part of the PiicoDev_Unified.py file.
Are you sure you have saved this file by right-clicking on it and selecting “save link as”.
If this doesn’t help would you be able to provide a bit more context to the error message you are receiving? Is it followed by any other text or is that the entire output?
Perfect, Samuel. You were spot on. The files have loaded and I (and my students) and on my way. Your support is very much appreciated.
Hey @Jane278324, thats good to hear!
I hope the rest of this project goes smoothly for you.