Arduino Quick Start
CoreInk LED related APIs and case programs.
#include "M5Unified.h" void setup(){ auto cfg = M5.config(); M5.begin(cfg); M5.Display.setTextDatum(middle_center); M5.Display.setTextFont(&fonts::Orbitron_Light_24); M5.Display.setTextSize(1); M5.Display.drawString("LED Test", M5.Display.width() / 2, M5.Display.height() / 2);} void loop(){ // inside green led control M5.Power.setLed(255); delay(1000); M5.Power.setLed(0); delay(1000);}
The power supply part of CoreInk employs the Power_Class
in the M5Unified library. For more relevant APIs, you can refer to the document below: