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 <WiFi.h> | |
#include <ESPectro32_Board.h> | |
#include <ESPectro32_RGBLED_Animation.h> | |
RgbLedColor_t aCol(200, 0, 0); | |
RgbLedColor_t bCol(0, 200, 0); | |
ESPectro32_RGBLED_GlowingAnimation glowAnim1(ESPectro32.RgbLed(), aCol); | |
ESPectro32_RGBLED_GlowingAnimation glowAnim2(ESPectro32.RgbLed(), bCol); |
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_LedMatrix_Animation.h> | |
ESPectro32_LedMatrix_Animation ledMatrixAnim; | |
void setup() { | |
ESPectro32.begin(); | |
ledMatrixAnim.setLedMatrix(ESPectro32.LedMatrix()); |
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, |
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 <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 <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
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 <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
#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
int ldr = 2; | |
int ldrValue; | |
int led = 15; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(led, OUTPUT); | |
} | |
void loop() { |