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
unsigned long t; | |
int Loop=10000; | |
int pin=1; | |
void setup() { | |
Serial.begin(9600); | |
// initialize the digital pin as an output. | |
pinMode(pin, OUTPUT); | |
delay(1000); | |
} |
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
Press [Enter] to directly boot. | |
Press [F7] to show boot menu options. | |
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
// the setup routine runs once when you press reset: | |
void setup() { | |
// initialize the digital pin as an output. | |
pinMode(RED_LED, OUTPUT); | |
pinMode(GREEN_LED, OUTPUT); | |
pinMode(BLUE_LED, OUTPUT); | |
} | |
// the loop routine runs over and over again forever: | |
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 "TFT.h" | |
#if (USB_VID == 0x2341) && (USB_PID == 0x803C) // are we building for Esplora? | |
TFT EsploraTFT(7, 0, 1); | |
#endif | |
TFT::TFT(uint8_t CS, uint8_t RS, uint8_t RST) | |
: Adafruit_ST7735(CS, RS, RST) | |
{ | |
// as we already know the orientation (landscape, therefore rotated), |
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
/* | |
TFT demo | |
https://github.com/arduino/TFT | |
http://arduino.cc/en/Reference/TFTLibrary | |
*/ | |
// randomdot | |
#include <TFT.h> | |
#include <SPI.h> |
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
/* | |
TFT demo | |
https://github.com/arduino/TFT | |
http://arduino.cc/en/Reference/TFTLibrary | |
*/ | |
// randomdot | |
#include <TFT.h> | |
#include <SPI.h> |
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
/* | |
TFT demo | |
https://github.com/arduino/TFT | |
http://arduino.cc/en/Reference/TFTLibrary | |
*/ | |
// randomdot | |
#include <TFT.h> | |
#include <SPI.h> |
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
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
This example code is in the public domain. | |
*/ | |
// Pin 13 has an LED connected on most Arduino boards. | |
// give it a name: | |
int led = 13; |
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 <TFT.h> | |
#include <SPI.h> | |
#define TFT_CS 42 | |
#define TFT_DC 43 | |
#define TFT_RST 0 | |
#define TFT_SCLK 0 | |
#define TFT_MOSI 0 | |
TFT screen = TFT(TFT_CS, TFT_DC, TFT_RST); // for UNO |
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
// http://www.aitendo.com/product/1007 | |
// GPS module GM318B test | |
// Crowduino-3.3V + GroveShield | |
#include <SoftwareSerial.h> | |
SoftwareSerial mySerial(10, 11); // RX, TX | |
void setup() | |
{ |
OlderNewer