This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Press button to record,released button to playback*/ | |
// https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Core/Atom/AtomEcho/Arduino/Repeater/Repeater.ino | |
#include <driver/i2s.h> | |
#include <M5Atom.h> | |
#define CONFIG_I2S_BCK_PIN 19 | |
#define CONFIG_I2S_LRCK_PIN 33 | |
#define CONFIG_I2S_DATA_PIN 22 | |
#define CONFIG_I2S_DATA_IN_PIN 23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define LGFX_AUTODETECT | |
#include <LovyanGFX.hpp> | |
#include "SD.h" | |
static LGFX lcd; | |
#define TFCARD_CS_PIN 4 // M5Stack(BASIC, GRAY, FIRE, GO, Core2) | |
void setup() { | |
lcd.init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "M5CoreInk.h" | |
#include <LovyanGFX.hpp> | |
Ink_Sprite InkPageSprite(&M5.M5Ink); | |
static LGFX_Sprite sprite; | |
extern const unsigned char img[5000]; | |
void pushSprite(); | |
void setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "M5CoreInk.h" | |
Ink_Sprite InkPageSprite(&M5.M5Ink); | |
extern const unsigned char img[5000]; | |
unsigned char imgBuff[5000]; | |
void setup() { | |
M5.begin(); | |
M5.M5Ink.isInit(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "M5CoreInk.h" | |
#include <Preferences.h> | |
Preferences preferences; | |
Ink_Sprite InkPageSprite(&M5.M5Ink); | |
void setup() { | |
M5.begin(); | |
digitalWrite(LED_EXT_PIN, LOW); | |
M5.M5Ink.isInit(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "M5Lite.h" | |
static LGFX_Sprite sprite(&M5Lite.Lcd); | |
static LGFX_Sprite spritePSRAM(&M5Lite.Lcd); | |
extern const uint16_t imgWidth; | |
extern const uint16_t imgHeight; | |
extern const unsigned short img[40000]; | |
void setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "M5Lite.h" | |
static LGFX_Sprite sprite[2](&M5Lite.Lcd); | |
static LGFX_Sprite spritePSRAM[2](&M5Lite.Lcd); | |
void setup() { | |
unsigned long startTime; | |
unsigned long endTime; | |
M5Lite.begin(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "M5Lite.h" | |
static LGFX_Sprite sprite[2](&M5Lite.Lcd); | |
void setup() { | |
unsigned long startTime; | |
unsigned long endTime; | |
M5Lite.begin(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "M5Lite.h" | |
static LGFX_Sprite sprite(&M5Lite.Lcd); | |
void setup() { | |
unsigned long time[100] = {}; | |
int timeCnt = 0; | |
M5Lite.begin(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define LGFX_AUTODETECT | |
#include <LovyanGFX.hpp> | |
#include "I2C_BM8563.h" | |
LGFX lcd; | |
I2C_BM8563 rtc(I2C_BM8563_DEFAULT_ADDRESS, Wire1); | |
void setup() { | |
// Init lcd | |
lcd.init(); |
OlderNewer