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 <MD_MAX72xx.h> | |
#include <SPI.h> | |
#define USE_POT_CONTROL 0 | |
#define PRINT_CALLBACK 0 | |
#define PRINT(s, v) { Serial.print(F(s)); Serial.print(v); } | |
#define HARDWARE_TYPE MD_MAX72XX::FC16_HW | |
#define MAX_DEVICES 16 |
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_LEDBackpack.h" | |
Adafruit_7segment AN71 = Adafruit_7segment(); | |
Adafruit_7segment AN72 = Adafruit_7segment(); | |
void setup() { | |
AN71.begin(0x70); | |
AN72.begin(0x72); |
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_LEDBackpack.h" | |
Adafruit_AlphaNum4 AN41 = Adafruit_AlphaNum4(); | |
Adafruit_AlphaNum4 AN42 = Adafruit_AlphaNum4(); | |
void setup() { | |
AN41.begin(0x70); // เริ่มทำงานที่ address 0x70 | |
AN42.begin(0x71); // เริ่มทำงานที่ address 0x71 |
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_LEDBackpack.h" | |
Adafruit_7segment matrix = Adafruit_7segment(); | |
void setup() { | |
matrix.begin(0x70); | |
} |
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 <Servo.h> | |
int servo = 6; | |
Servo myservo; | |
int analogPin = 5; | |
int val = 0; | |
void setup() { | |
myservo.attach(servo); | |
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
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include "Adafruit_LEDBackpack.h" | |
Adafruit_AlphaNum4 alpha4 = Adafruit_AlphaNum4(); | |
void setup() { | |
alpha4.begin(0x70); // เริ่มทำงานที่ address 0x70 | |
} |
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_LEDBackpack.h" | |
Adafruit_AlphaNum4 alpha4 = Adafruit_AlphaNum4(); | |
void setup() { | |
alpha4.begin(0x70); // เริ่มทำงานที่ address 0x70 | |
} |
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_LEDBackpack.h" | |
Adafruit_AlphaNum4 alpha4 = Adafruit_AlphaNum4(); | |
void setup() { | |
alpha4.begin(0x70); // เริ่มทำงานที่ address 0x70 | |
} |
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 <VL53L0X.h> | |
int led = 18; | |
int buzzer = 19; | |
VL53L0X sensor; | |
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
#include <Wire.h> | |
#include <VL53L0X.h> | |
int led = 14; //D5 | |
int buzzer = 0; //D3 | |
VL53L0X sensor; | |
void setup() | |
{ | |
Serial.begin(9600); |
NewerOlder