Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Adafruit Logo
0
Adafruit Trinket M0 CircuitPython

Adafruit Trinket M0

CircuitPython or Arduino IDE on this tiny little microcontroller board

Image for user adafruit2
published August 23, 2017, last edited June 24, 2025
Save Link Note Download
161
Beginner
Product guide

CircuitPython

As we continue to develop CircuitPython and create new releases, we will stop supporting older releases. If you are running an older version of CircuitPython, you need to update. Click the button below to download the latest!

CircuitPython is a derivative ofMicroPython designed to simplify experimentation and education on low-cost microcontrollers. It makes it easier than ever to get prototyping by requiring no upfront desktop software downloads. The trinket M0 is the second board that comes pre-loaded with CircuitPython. Simply copy and edit files on theCIRCUITPY drive to iterate.

Your Trinket M0 already comes with CircuitPython but maybe there's a new version, or you overwrote your Trinket M0 with Arduino code! In that case, see the below for how to reinstall or update CircuitPython. Otherwise you can skip this and go straight to the next page

If you've already plugged your board into your computer, you should see a drive calledCIRCUITPY. The drive will contain a few files. If you want to make a 'backup' of the current firmware on the device, drag-off and save theCURRENT.UF2 file. Other that that you can ignore theindex.htm andinfo_uf2.txt files. They cannot be deleted and are only for informational purposes.

If you have already plugged in your board, start by ejecting or "safely remove" the CIRCUITPY drive. This is a good practice to get into. Always eject before unplugging or resetting your board!

Set up CircuitPython Quick Start!

Follow this quick step-by-step for super-fast Python power :)

The PyRuler, which is a Trinket embedded in a ruler,has its own Learn Guide.

adafruit_products_TrinketUF2.png

Click the link above and download the latest UF2 file.

Download and save it to your desktop (or wherever is handy).

adafruit_products_TrinketBootloader.jpg

Plug your Trinket into your computer using a known-good USB cable.

A lot of people end up using charge-only USB cables and it is very frustrating! So make sure you have a USB cable you know is good for data sync.

Double-click the smallResetbutton next to the Trinket M0 name printed on your board, and you will see the Dotstar RGB LED turn green. If it turns red, check the USB cable, try another USB port, etc.Note: The little LED below the USB connector will be red - this is ok!

If double-clicking doesn't work the first time, try again. Sometimes it can take a few tries to get the rhythm right!

adafruit_products_TrinketTRINKETBOOT.png
adafruit_products_TrinketTRINKETBOOT.png
adafruit_products_TrinketDragUF2toTRINKETBOOT.png

You will see a new disk drive appear calledTRINKETBOOT.

 

 

 

Drag theadafruit_circuitpython_etc.uf2 file toTRINKETBOOT

adafruit_products_TrinketCIRCUITPY.png

The red LED will flash. Then, theTRINKETBOOT drive will disappear and a new disk drive calledCIRCUITPY will appear.

That's it, you're done! :)

Further Information

For more detailed info on installing CircuitPython, check outInstalling CircuitPython.

Trinket Default Zip Install

Trinket M0 is limited on space. As you begin working on projects, you may run out of space. Operating systems can create hidden files that take up space. To prevent these files from being added to your Trinket,we suggest installing the Trinket Default Zip.

adafruit_products_TrinketDefaultZipFile.png

Click the link above to download the default zip.

 

Download and save it to your desktop, or wherever is handy!

adafruit_products_TrinketCIRCUITPYDrive.png

If you haven't already,plug your Trinket into your computer using a known-good USB cable.

 

Make sure yourCIRCUITPY drive appears.

adafruit_products_TrinketDefaultZipExtracted.png

Once downloaded,double-click the file to extract the contents.

adafruit_products_TrinketOpenDefaultZipFolder.png

Double click newly extracted folder to open it.

adafruit_products_TrinketDragThreeFiles.png

To load the files that will keep the system from adding hidden files to your drive, highlight these three files:

.fseventsd

.metadata_never_index

.Trashes

 

Drag them to yourCIRCUITPY drive. If it asks to replace any, say yes!

adafruit_products_TrinketDragDefaultZipContents.png

If you'd like toreset your Trinket to the same files it shipped with, you can do that with these files.If you changed main.py, and you want to keep your changes, back up main.py first.

Highlight all the files in this folder. Drag them all to your CIRCUITPY drive.

If it asks to replace anything, say yes.

Page last edited March 30, 2024

Text editor powered bytinymce.

Related Guides
Search

Search

Categories

[8]ページ先頭

©2009-2025 Movatter.jp