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
#if 0 | |
#include <SPI.h> | |
#include <PN532_SPI.h> | |
#include "PN532.h" | |
PN532_SPI pn532spi(SPI, 10); | |
PN532 nfc(pn532spi); | |
/* When the number after #elif set as 1, it will be switch to HSU Mode*/ | |
#elif 0 |
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 <Wire.h> | |
#include "SSD1306.h" | |
int asap = 2; | |
int sensorThres = 400; | |
SSD1306 display(0x3c, 21, 22); | |
void setup() { | |
Serial.begin(9600); |
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
int ldr = 2; | |
int ldrValue; | |
int led = 15; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(led, OUTPUT); | |
} | |
void loop() { |
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 <Wire.h> | |
#include "SSD1306.h" | |
SSD1306 display(0x3c, 21, 22); | |
const int trigger = 2; | |
const int echo = 5; | |
int distance; | |
long duration; |
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 <Arduino.h> | |
#include <ESPectro32_Board.h> | |
#include <ESPectro32_RGBLED_Animation.h> | |
const int trigger = 2; | |
const int echo = 5; | |
int distance; | |
long duration; |
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
const int trigger = 2; | |
const int echo = 5; | |
int distance; | |
long duration; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(trigger, OUTPUT); | |
pinMode(echo, INPUT); | |
} |
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 <Wire.h> | |
#include "SSD1306.h" | |
SSD1306 display(0x3c, 21, 22); | |
int photoPin = 36; | |
float potValue = 0; | |
float potVoltage = 0; | |
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 <Arduino.h> | |
#include <ESPectro32_Board.h> | |
#include <ESPectro32_RGBLED_Animation.h> | |
#include "SparkFunLSM6DS3.h" | |
#include "Wire.h" | |
#include "SPI.h" | |
RgbLedColor_t aCol(200, 0, 0); | |
RgbLedColor_t bCol(0, 200, 0); | |
RgbLedColor_t cCol(0, 0, 200); |
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 <esp_log.h> | |
#include <ESPectro32_Board.h> | |
#include <ESPectro32_LedMatrix_Animation.h> | |
ESPectro32_LedMatrix_ScrollTextAnimation ledMatrixTextAnim; | |
static void load_ex_ledmatrix_anim() { | |
ledMatrixTextAnim.setLedMatrix(ESPectro32.LedMatrix()); | |
ledMatrixTextAnim.scrollText("Hello World!!", 6000); | |
} |
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 <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_IS31FL3731.h> | |
Adafruit_IS31FL3731 matrix = Adafruit_IS31FL3731(); | |
static const uint8_t PROGMEM | |
triangle[] = | |
{ B00000000, | |
B00010000, |
NewerOlder