This repository contains the FX Chrony display code for the M5 Stick C Plus. The FX Chrony display is a simple and effective way to keep track of your shooting data in real-time. With this project, you can quickly and easily get started with using the M5 Stick C Plus to display important shooting information such as your shot velocity, shot count, and more.
Instructions to start with Arduino IDE 'https://docs.m5stack.com/en/quick_start/m5stickc/arduino'
- Download the latest version of the Arduino IDE from the official website: https://www.arduino.cc/en/software
- Install the Arduino IDE on your computer
- Start the Arduino IDE
- Go to File -> Preferences
- In the "Additional Boards Manager URLs" field, add the following URL: 'https://dl.espressif.com/dl/package_esp32_index.json'
- Restart Arduino IDE
- Go to Tools -> Board -> Boards Manager
- Search for "esp32"
- Install the "esp32 by Espressif Systems" package
- Go to Tools -> Board -> M5Stack Arduino
- Select "M5Stick-C-Plus"
- Connect your M5StickC to your computer using a USB-C cable
- Go to Tools -> Port
- Select the port that your M5StickC is connected to
- On Windows: "COMx"
- On Mac and Linux: "/dev/cu.usbserial-xxxxx"
- On some Linux distributions: "/dev/ttyUSBx"
- Go to File -> Examples -> 01.Basics -> Blink
- Click the Upload button (right arrow) to upload the sketch to your M5StickC
Your M5StickC should now be set up and ready to use with the Arduino IDE!
If you don't know how to clone a repository use this link to download zip 'https://github.com/DaystateRebel/FXChrony_M5STICK_PLUS/archive/refs/heads/main.zip' and open .ino file in Arduino IDE.
Before you can use this code, you need to have the M5 Stack board definitions installed in the Arduino IDE. To do this, follow these steps:
- In the Arduino IDE, go to
File
>Preferences
- Add
https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
to theAdditional board manager URLS
field - Go to
Tools
>Board
>Boards manager
- Search for and install "M5Stack"
- Go to
Tools
>Board
- Select
M5Stick-C-Plus
This project uses the M5StickCPlus and OpenFontRender libraries and M5-ENV 'https://github.com/m5stack/M5Unit-ENV/tree/master/src'. To install these libraries, follow these steps:
- Go to
Sketch
>Include Library
>Manage Libraries
- Search for and install
M5StickCPlus
- Download the Open Font Render library from here
- Click the green
Code
button to download the library - Go to
Sketch
>Include Library
>Add .Zip Library
- Choose the file you downloaded
With these steps completed, you should now have everything you need to start using this project. Happy coding!