0

How to Edit Code on MacroPad
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

How to Edit Code on MacroPad

by tombalazs on Sat Jul 31, 2021 9:35 pm

I'm a beginner who ordered AdaBox 019.
What's the correct way to edit Circuit Python code on the MacroPad?
I can boot the MacroPad and Access it from my Ubuntu 20 laptop using the cable.
I'm trying to change the macros in MacroPad by copying an existing script, editing it, and hopefully seeing that new script on the MacroPad list display.

Also, I tried to remove some script files by changing the file extension to .txt, but they reverted to .py.
A couple of times when I changed the code in the file it didn't remain that way, the next time I went to edit the file, the changes weren't there. But sometimes the changes do remain.

For more details on this you can see my previous post at
viewtopic.php?f=59&t=181786&p=883550#p883550

tombalazs
 
Posts: 5
Joined: Sat Jul 31, 2021 11:12 am

Re: How to Edit Code on MacroPad

by dastels on Sat Jul 31, 2021 9:52 pm

What tool(s) do you use for editing the code?

Make sure that what you're using is saving code to the CIRCUITPY drive, and that it's saving it as code.py or main.py.

See https://learn.adafruit.com/welcome-to-circuitpython for more on how to use CircuitPython.

Dave

dastels
 
Posts: 7305
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.