r/circuitpython • • May 12 '20

Does anyone else have this problem?

I find the Circuit Python language and how it works microcontrollers fairly easy to understand.

However when it came to installing an editor and getting it working It was a different story.

First I tried the Mu editor but in a few ways it's environment is hard to work with. I tried Visual Studio but the trouble was you need to be an expert to understand all the steps to get it working.

The web isn't a helpful place for this problem.

I think there should be an ide dedicated to Circuit Python that includes a feature that helps with indenting text according to its nesting order. I mean a bit like Arduino has.

5 Upvotes

4 comments sorted by

5

u/thicket May 12 '20

Well, coding is hard. Sometimes tooling is hard too. You may get some better advice if you can describe the problems you're having in a little more detail. If you can describe, for instance, the device you have, the OS you're working on, how you're connecting the device to your desktop machine, and how you're expecting the code to get from your computer to your device, somebody might have some help to offer.

Learning to be frustrated by something and then go back to it and try it again differently is the most important skill I've developed over time. It can be a long road, but it's rewarding!

5

u/[deleted] May 12 '20

Try Visual Studio Code (much easier to use than Visual Studio) with this plugin. That's how I program my adafruit boards.

First of all follow this guide and have the plugin page open in another tab for usage tips.

4

u/RunRunAndyRun May 13 '20

Mu doesn't work with many boards beyond the circuit playground in my experience, I just use my favourite text editor (Sublime Text 3) and manually connect to the board over serial using Terminal. Theres detail on how to do it with Mu on this page and an explanation on how to manually connect on this Adafruit Learning Guide

3

u/kaltazar May 12 '20

I've recently done a substantial amount of work using Atom with regular Python and it works great. It does take a bit of work to tweak the environment exactly to your liking, but that also is what makes it powerful. It is fully open source with thousands of packages available, including one for CircuitPython.

Again, Atom does take some setup, but any IDE with any amount of power will. Ones like Mu and Arduino IDE are ready to go out of the box. That is why they are recommended to new coders, but also why they are limited in flexibility and features.