Skip to content

Instantly share code, notes, and snippets.

@dj1711572002
dj1711572002 / ESP32_git_SPIFFS_TEST_LIST00.ino
Created August 11, 2020 09:32
M5StickC SPIFFS List function
#include <M5StickC.h>
#include "FS.h"
#include "SPIFFS.h"
/* You only need to format SPIFFS the first time you run a
test or else use the SPIFFS plugin to create a partition
https://github.com/me-no-dev/arduino-esp32fs-plugin */
#define FORMAT_SPIFFS_IF_FAILED true
void listDir(fs::FS &fs, const char * dirname, uint8_t levels){
@dj1711572002
dj1711572002 / ESP32_git_SPIFFS_TEST_WRITE-READ_milli_append_02.ino
Last active January 12, 2021 14:55
M5StickC_SPIFFS WRITE_READ_TEST_APPEND
#include <M5StickC.h>
#include "FS.h"
#include "SPIFFS.h"
/* You only need to format SPIFFS the first time you run a
test or else use the SPIFFS plugin to create a partition
https://github.com/me-no-dev/arduino-esp32fs-plugin */
#define FORMAT_SPIFFS_IF_FAILED true
int i,j,k;
String Listname[1000] ;
#include <Arduino.h>
#include <M5StickC.h>
#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEScan.h>
#include <BLEAdvertisedDevice.h>
#include "FS.h"
#include "SPIFFS.h"
/* You only need to format SPIFFS the first time you run a
test or else use the SPIFFS plugin to create a partition
@dj1711572002
dj1711572002 / AD7194_M5Atom_test6ch_rev001.ino
Created August 15, 2020 18:47
M5Atom_SPI_AD7194EVAL board 6CH StrainGaugeBridges
//AD7194 M5Atom SPI test
//2020.08.16 Shinshu-Makers
#include <M5StickC.h>
#include <SPI.h>
int i=0,j=0;
int MA=10;
uint8_t data0,data1,data2;
uint8_t recvdata;
@dj1711572002
dj1711572002 / SCP_slave_M5ATOM_ESP-NOW_2port_dataStr_rev04.ino
Created August 18, 2020 13:55
SCP 同期実験 ESP-NOW Slave Program M5Atomlite
#include <M5StickC.h>
//#include <M5Stack.h>
#include <esp_now.h>
#include <WiFi.h>
int i,j,k,n,m;
int t,t_1;
volatile int stime=0,stime_1=0;
volatile int rt0=0,rt1=0,rt2=0;
esp_now_peer_info_t slave;
#include <M5StickC.h>
#include <BluetoothSerial.h>
#include <esp_now.h>
#include <WiFi.h>
//====IMU=============
float accX = 0.0F;
float accY = 0.0F;
float accZ = 0.0F;
int i,j;
@dj1711572002
dj1711572002 / AD7194_M5Atom_ESP-NOW_stime_6ch_rev03.ino
Created August 18, 2020 14:00
SCP_Dummy5 M5Atomlite AD7194_6CH
//AD7194 M5Atom SPI test
//2020.08.16 Shinshu-Makers
#include <M5StickC.h>
#include <SPI.h>
#include <esp_now.h>
#include <WiFi.h>
int i=0,j=0,k=0;
int MA=10;
@dj1711572002
dj1711572002 / Form1.vb
Last active August 28, 2020 05:54
VB.NET_SerialApp7CH
'Seril Port Recieve Sample Program
'Form1 Object must create ,Button1,2 & TextBox 1-10 & ListBox1
Imports System.IO.Ports
Public Class Form1
Delegate Sub DataDelegate(ByVal sdata As String)
'=========Class内で共通に使う変数はここで宣言すること======
@dj1711572002
dj1711572002 / ImagingsolutionLibrary_Test00
Created August 26, 2020 16:07
VB.NET MatrixLibraryTest_ImagingsolutionLibrary_Test00
Imports ImagingSolution 'ImagingSolution.Matクラス用
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
'========matA====================
Dim matA(2, 2) As Double
matA(0, 0) = 1
matA(0, 1) = 2
matA(0, 2) = 3
matA(1, 0) = 4
matA(1, 1) = 5
@dj1711572002
dj1711572002 / SerialSample_DataCalc00_Form1.vb
Created August 28, 2020 08:25
VBNET_StatTest00_SerialSample_DataCalc00
'Seril Port Recieve Sample Program
'Form1 Object must create ,button1,2 & textbox 1,2 
Imports System.IO.Ports
Public Class Form1
Delegate Sub DataDelegate(ByVal sdata As String)
'=========Available Parameters in thie Calss=================
Dim dataAry(600000, 7) As Long