This file contains hidden or 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
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" "-Wl,--Map={build.path}/{build.project_name}.map" "-L{compiler.sdk.path}/lib" "-L{compiler.sdk.path}/ld" {compiler.c.elf.flags} {compiler.c.elf.extra_flags} {build.extra_flags} -Wl,--start-group {object_files} "{archive_file_path}" {compiler.c.elf.libs} {compiler.libraries.ldflags} -Wl,--end-group -Wl,-EL -o "{build.path}/{build.project_name}.elf" |
This file contains hidden or 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
#!/bin/bash | |
CHIP_NAME=$1 | |
COM_NAME=$2 | |
COM_SPEED=$3 | |
ELF_FILE=$4 | |
PROJECT_NAME=`basename $ELF_FILE` | |
BUILD_PATH=`dirname $ELF_FILE` | |
if [ `basename $BUILD_PATH` = "examples" ]; then |
This file contains hidden or 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
// https://github.com/eembc/coremark | |
#include "core_portme.h" | |
int main(void); | |
void setup() | |
{ | |
Serial.begin(115200); | |
delay(500); | |
disableCore0WDT(); |
This file contains hidden or 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
// base https://github.com/lovyan03/M5Stack_LovyanLauncher/blob/master/LovyanLauncher/src/CBFSBench.h | |
#include <SPIFFS.h> | |
#include <FFat.h> | |
#include <LittleFS.h> | |
#define BENCH_FS 2 // 0=SPIFFS, 1=LittleFS, 2=FFat | |
String tmpFile{"/lovyanLauncherBench"}; | |
#if BENCH_FS == 0 |
This file contains hidden or 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 <Wire.h> | |
class I2C_SLG46826 { | |
public: | |
I2C_SLG46826(TwoWire &i2cWire = Wire) { | |
_i2cWire = &i2cWire; | |
} | |
bool scanSlg(uint8_t controlCode) { | |
if (16 <= controlCode) { |
This file contains hidden or 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
#if !defined(ARDUINO) | |
#include <M5Unified.h> | |
enum pin_mode_t | |
{ | |
output, | |
input, | |
input_pullup, | |
input_pulldown |
This file contains hidden or 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
{ | |
"buildProperties": { | |
"version": "2.0.14", | |
"tools.xtensa-esp32-elf-gcc.path": "C:\\Users\\tanaka\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32-elf-gcc\\esp-2021r2-patch5-8.4.0", | |
"tools.xtensa-esp32s2-elf-gcc.path": "C:\\Users\\tanaka\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32s2-elf-gcc\\esp-2021r2-patch5-8.4.0", | |
"tools.xtensa-esp32s3-elf-gcc.path": "C:\\Users\\tanaka\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32s3-elf-gcc\\esp-2021r2-patch5-8.4.0", | |
"tools.xtensa-esp-elf-gdb.path": "C:\\Users\\tanaka\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp-elf-gdb\\11.2_20220823", | |
"tools.riscv32-esp-elf-gcc.path": "C:\\Users\\tanaka\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\riscv32-esp-elf-gcc\\esp-2021r2-patch5-8.4.0", | |
"tools.riscv32-esp-elf-gdb.path": "C:\\Users\\tanaka\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\riscv32-esp-elf-gdb\\11.2_20220823", | |
"debug.server.openocd.path": "C:\\Users\\tanaka\\AppData\\L |
This file contains hidden or 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 <WiFi.h> | |
#include <HTTPClient.h> | |
#include <WiFiClientSecure.h> | |
#include "x509_crt_bundle.h" | |
void setup() { | |
Serial.begin(115200); | |
WiFi.begin(); | |
Serial.print("Waiting for WiFi to connect..."); |
This file contains hidden or 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
const size_t usart1_buff_size = 256; | |
char usart1_buff[usart1_buff_size]; | |
uint16_t usart1_buff_write = 0; | |
uint16_t usart1_buff_read = 0; | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
void USART1_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast"))); | |
void USART1_IRQHandler(void) { |
This file contains hidden or 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
@ECHO OFF | |
IF EXIST "arduino-cli.exe" ( | |
ECHO arduino-cli find. | |
) ELSE ( | |
ECHO download arduino-cli | |
curl -L https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Windows_64bit.zip -o arduino-cli_latest_Windows_64bit.zip | |
tar -xf arduino-cli_latest_Windows_64bit.zip | |
DEL arduino-cli_latest_Windows_64bit.zip | |
DEL LICENSE.txt |