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> | |
| void setup() { | |
| Wire.begin(); | |
| Serial.begin(115200); | |
| Serial.println("\nI2C Scanner"); | |
| } | |
| void loop() { | |
| byte error, address; |
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://pmdway.com/blogs/news/using-the-0-96-80-x-160-full-color-ips-lcd-module-with-arduino | |
| // https://pmdway.com/products/0-96-80-x-160-full-color-lcd-module | |
| #include <UTFT.h> | |
| // Declare which fonts we will be using | |
| extern uint8_t SmallFont[]; | |
| // Initialize display | |
| // Library only supports software SPI at this time | |
| //NOTE: support DUE , MEGA , UNO |
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
| int i = 1000; | |
| void setup() | |
| { | |
| pinMode(3, OUTPUT); // sets digital pin 3 to an output | |
| pinMode(6, OUTPUT); // sets digital pin 6 to an output | |
| } | |
| void loop() | |
| { |
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
| int i = 1000; | |
| void setup() | |
| { | |
| pinMode(3, OUTPUT); // sets digital pin 3 to an output | |
| pinMode(6, OUTPUT); // sets digital pin 6 to an output | |
| } | |
| void loop() | |
| { |
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
| void setup() | |
| { | |
| // initialize digital pin 13 as an output. | |
| pinMode(13, OUTPUT); | |
| } | |
| // the loop function runs over and over again, forever | |
| void loop() { | |
| digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level) | |
| delay(1000); // wait for a second |
NewerOlder