anonymous No title
No License C++
2020年11月14日
Copy Clone
#include "M5CoreInk.h"
#include <LovyanGFX.hpp>

Ink_Sprite InkPageSprite(&M5.M5Ink);
static LGFX_Sprite sprite;

void setup() {
  M5.begin();
  M5.M5Ink.isInit();
  M5.M5Ink.clear();
  InkPageSprite.creatSprite(0, 0, 200, 200, false);

  // スプライト作成
  sprite.setColorDepth(2);
  sprite.createPalette();
  sprite.createSprite(200, 200);
  sprite.clear(TFT_WHITE);

  // 描画テスト
  sprite.drawLine(0, 0, 199, 199, TFT_BLACK);
  pushSprite();

  delay(1000);

  // 描画テスト
  sprite.drawLine(0, 0, 199, 0, TFT_BLACK);
  pushSprite();

  delay(1000);

  // 描画テスト
  sprite.clear(TFT_WHITE);
  sprite.drawLine(0, 10, 199, 10, TFT_BLACK);
  pushSprite();
}

void loop() {
  delay(10000);
}

void pushSprite() {
  InkPageSprite.clear();
  for (int y = 0; y < 200; y++) {
    for (int x = 0; x < 200; x++) {
      uint16_t c = sprite.readPixel(x, y);
      if (c == 0x0000) {
        InkPageSprite.drawPix(x, y, 0);
      } else {
        InkPageSprite.drawPix(x, y, 1);
      }
    }
  }
  InkPageSprite.pushSprite();
}
#include "M5CoreInk.h"
#include <LovyanGFX.hpp>

Ink_Sprite InkPageSprite(&M5.M5Ink);
static LGFX_Sprite sprite;

void setup() {
  M5.begin();
  M5.M5Ink.isInit();
  M5.M5Ink.clear();
  InkPageSprite.creatSprite(0, 0, 200, 200, false);

  // スプライト作成
  sprite.setColorDepth(2);
  sprite.createPalette();
  sprite.createSprite(200, 200);
  sprite.clear(TFT_WHITE);

  // 描画テスト
  sprite.drawLine(0, 0, 199, 199, TFT_BLACK);
  pushSprite();

  delay(1000);

  // 描画テスト
  sprite.drawLine(0, 0, 199, 0, TFT_BLACK);
  pushSprite();

  delay(1000);

  // 描画テスト
  sprite.clear(TFT_WHITE);
  sprite.drawLine(0, 10, 199, 10, TFT_BLACK);
  pushSprite();
}

void loop() {
  delay(10000);
}

void pushSprite() {
  InkPageSprite.clear();
  for (int y = 0; y < 200; y++) {
    for (int x = 0; x < 200; x++) {
      uint16_t c = sprite.readPixel(x, y);
      if (c == 0x0000) {
        InkPageSprite.drawPix(x, y, 0);
      } else {
        InkPageSprite.drawPix(x, y, 1);
      }
    }
  }
  InkPageSprite.pushSprite();
}
anonymous
Anonymous
2021年04月26日
Drugs information for patients. Short-Term Effects. <a href="https://pregabalinfor.top">buy cheap pregabalin for sale</a> in Canada Actual what you want to know about medicine. Get information now.
anonymous
Anonymous
2021年04月30日
cialis and high blood pressure <a href="https://mycialistabs.com/">how much is cialis</a> cialis medication
anonymous
Anonymous
2021年05月04日
best online pharmacy for cialis <a href="https://toptadalafiltabs.com/">cialis 20 mg price</a> cost of cialis at walmart
anonymous
Anonymous
2021年05月05日
how to write an acedemic essay <a href="https://topessaywriterfas.com/">essay scholarship for college students</a> how to write a personal reflection essay
anonymous
Anonymous
2021年05月07日
service essay paper <a href="http://writemyessayslfd.com/">i need help writing an essay</a> essay writing paper
anonymous
Anonymous
2021年05月07日
female viagra sildenafil <a href="https://mrviagrashop.com">sildenafil 100mg tablets</a> viagra 100 mg
anonymous
Anonymous
2021年05月08日
sildenafil 100mg <a href="https://mysildenafilkr.com/">viagra price</a> viagra for women
anonymous
Anonymous
2021年05月12日
bookkeeper resume <a href="http://coverletterforresumetop.com/">cover letter help</a> java developer resume
anonymous
Anonymous
2021年05月12日
cialis and viagra together <a href="http://tadalafilled.com/">buy tadalafil online</a> buy cialis canadian
anonymous
Anonymous
2021年05月13日
photography resume <a href="https://writingacoverletteronline.com/">it resume writer</a> help desk resume
anonymous
Anonymous
2021年05月14日
sildenafil pills <a href="https://edviagramaster.net/">cvs viagra</a> sildenafil buy
anonymous
Anonymous
2021年05月16日
us pharmacy prices for cialis <a href="https://cialisortadalafil.com/">how to make cialis work better</a> do you need a prescription for cialis
anonymous
Anonymous
2021年05月16日
generic sildenafil <a href="https://sildenafilviagratop.com">viagra price</a> viagra amazon
anonymous
Anonymous
2021年05月17日
what doe cialis look like <a href="https://topcialistabs.com/">generic cialis canada</a> cialis price per pill
anonymous
Anonymous
2021年05月20日
Pills prescribing information. What side effects? <a href="https://diflucan4u.top">where can i buy diflucan prices</a> in US Some trends of drugs. Get information here.
anonymous
Anonymous
2021年06月01日
Meds information leaflet. What side effects? <a href="https://diltiazem4u.top">where can i get cheap diltiazem</a> in US Everything about medicament. Get information here.
anonymous
Anonymous
2021年08月31日
<a href="https://domalech.ru/">trazodone acetate ophthalmic suspension usp for dogs</a>
anonymous
Anonymous
2021年09月05日
Drugs information for patients. Cautions. <a href="https://doxycycline2020.top">doxycycline without a prescription</a> in USA All news about medicament. Get here.