How to Edit Code on MacroPad

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
tombalazs
 
Posts: 6
Joined: Sat Jul 31, 2021 11:12 am

How to Edit Code on MacroPad

Post by tombalazs »

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

User avatar
dastels
 
Posts: 15817
Joined: Tue Oct 20, 2015 3:22 pm

Re: How to Edit Code on MacroPad

Post by dastels »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”