• Hello Everyone,

    Hope my question is in the right section, if not please let me know, thanks!

    I got a M5 CORE INK and i want connect it with an encoder (360PPR). The goal is to be able to read the value of an angle (in degree)
    Here an example of what i want to do: https://www.youtube.com/watch?v=jN9B3y1iPeA&ab_channel=JpbBricole-
    I'm a real beginer in code, i use Arduino IDE.

    My problem is about how to put the value of the angle on the Core Ink screen's

    Currently, my code work with a visualization on the serial monitorbut i don't know how to push it on the Core Ink screen's

    Here my code:

    /* Encoder Library - Basic Example

    #include <Encoder.h>

    // Change these two numbers to the pins connected to your encoder.
    // Best Performance: both pins have interrupt capability
    // Good Performance: only the first pin has interrupt capability
    // Low Performance: neither pin has interrupt capability
    Encoder myEnc(25, 26);
    // avoid using pins with LEDs attached
    int newPosition;
    float angle;

    void setup() {
    Serial.println("Basic Encoder Test:");

    long oldPosition = -999;

    void loop() {
    long newPosition = myEnc.read();
    if (newPosition != oldPosition) {
    oldPosition = newPosition;
    angle = newPosition * 0.005;

    I want also put a reset function.



  • Hello @BM22

    have a look at this example. It shows how to put 'Hello World!' onto the M5CoreInk screen.