Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions examples/Basic/AnalogMeter/AnalogMeter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ M5GFX display;
//M5AtomDisplay display; // default setting
//M5AtomDisplay display ( 320, 180 ); // width, height

// #include <M5UnitPoEP4HDMI.h>
// M5UnitPoEP4HDMI display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60


static constexpr float deg_to_rad = 0.017453292519943295769236907684886;
static constexpr int TFT_GREY = 0x5AEB;
static constexpr int TFT_METER_GREY = 0x5AEB;
static constexpr int LOOP_PERIOD = 35; // Display updates every 35 ms

int value[6] = {0, 0, 0, 0, 0, 0};
Expand Down Expand Up @@ -111,7 +114,7 @@ void analogMeter()

void plotLinear(const char *label, int x, int y, int w, int h)
{
display.drawRect(x, y, w, h, TFT_GREY);
display.drawRect(x, y, w, h, TFT_METER_GREY);
display.fillRect(x + 2, y + 18, w - 3, h - 36, TFT_WHITE);
display.setTextColor(TFT_CYAN, TFT_BLACK);
display.setTextDatum(textdatum_t::middle_center);
Expand Down
3 changes: 3 additions & 0 deletions examples/Basic/BarGraph/BarGraph.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ M5GFX display;
// #include <M5AtomDisplay.h>
// M5AtomDisplay display;

//#include <M5UnitPoEP4HDMI.h>
//M5UnitPoEP4HDMI display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60

static constexpr size_t BAR_COUNT = 64;
static int max_y[BAR_COUNT];
static int prev_y[BAR_COUNT];
Expand Down
3 changes: 3 additions & 0 deletions examples/Basic/GameOfLife/GameOfLife.ino
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ M5GFX display;
//#include <M5AtomDisplay.h>
//M5AtomDisplay display;

//#include <M5UnitPoEP4HDMI.h>
//M5UnitPoEP4HDMI display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60

M5Canvas canvas[2];

void setup(void)
Expand Down
3 changes: 3 additions & 0 deletions examples/Basic/LongTextScroll/LongTextScroll.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ M5GFX display;
//#include <M5AtomDisplay.h>
//M5AtomDisplay display;

//#include <M5UnitPoEP4HDMI.h>
//M5UnitPoEP4HDMI display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60

M5Canvas canvas(&display);

static constexpr char text[] = "Hello world ! こんにちは世界! this is long long string sample. 寿限無、寿限無、五劫の擦り切れ、海砂利水魚の、水行末・雲来末・風来末、喰う寝る処に住む処、藪ら柑子の藪柑子、パイポ・パイポ・パイポのシューリンガン、シューリンガンのグーリンダイ、グーリンダイのポンポコピーのポンポコナの、長久命の長助";
Expand Down
3 changes: 3 additions & 0 deletions examples/Basic/ScrollGraph/ScrollGraph.ino
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ M5GFX display;
//#include <M5AtomDisplay.h>
//M5AtomDisplay display;

//#include <M5UnitPoEP4HDMI.h>
//M5UnitPoEP4HDMI display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60


#define LINE_COUNT 6

Expand Down
3 changes: 3 additions & 0 deletions examples/Basic/SpinTile/SpinTile.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ M5GFX display;
//M5AtomDisplay display; // default setting
//M5AtomDisplay display ( 320, 180 ); // width, height

//#include <M5UnitPoEP4HDMI.h>
//M5UnitPoEP4HDMI display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60

static constexpr const int qsintab[256]={
0x8000,0x80c9,0x8192,0x825b,0x8324,0x83ee,0x84b7,0x8580,
0x8649,0x8712,0x87db,0x88a4,0x896c,0x8a35,0x8afe,0x8bc6,
Expand Down
Loading
Loading