NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

#include "SPI.h"
#include "TFT_22_ILI9225.h"

#define TFT_RST 4
#define TFT_RS 3
#define TFT_CS 2 // SS
#define TFT_SDI 11 // MOSI
#define TFT_CLK 13 /// SCK
#define TFT_LED 5 /// 0 if wired to +3V directly
// size of screen is 176x 220
/// Use hardware SPI (faster - on Uno: 13-SCK, 12-MISO, 11-MOSI)
TFT_22_ILI9225 tft = TFT_22_ILI9225(TFT_RST, TFT_RS, TFT_CS, TFT_LED);
/// Use software SPI (slower)
//TFT_22_ILI9225 tft = TFT_22_ILI9225(TFT_RST, TFT_RS, TFT_CS, TFT_SDI, TFT_CLK, TFT_LED);// USE THIS IF DISPLAY IS HOOKED DIRECTLY INTO ARDUINO

int CircleRadius = 16;
const int n =1;
float x = 0;
float x1=0;
float y1 = 0;
int b = 0;
int x5;
int x4;
int x3;
int x2;
int y5;
int y4;
int y3;
int y2;

int a1 = 106; int a2 = 70; int a3; int a4; int a5; int b1 = 120; int b2 = 100; int bc3; int bd4; int be5;

// Setup
void setup()
{
int CircleRadius = 16;
Serial.begin(9600);
Serial.println("Hello jaflue");
tft.begin();
tft.setFont(Terminal6x8);
tft.drawText(10, 10, "Hello jaflue !", COLOR_BLUE);
delay(100000);
//tft.clear();
}
void loop()
{
if(b <5) {
tft.drawRectangle(a1, b1, a2, b2, COLOR_BLUE);

x1 = x1 + n;
y1 = 2*(x1) + 1;
Serial.begin(9600);
Serial.println("Hello jaflue");
//tft.clear();
//tft.setFont(Terminal2x1);
//tft.drawText(10, 10, "Hello jaflue !")
//tft.setBackgroundColor(COLOR_GREEN);
//delay(1000);
//Serial.println("What radius do you want for the circle?"); //Prompt User for Input
//while(Serial.available()==0) { }// Wait for User to Input Data
//CircleRadius=Serial.parseInt(); //Read the data the user has input
tft.drawPixel(x1, y1, COLOR_BLUE);
tft.drawCircle(110, 88, CircleRadius, COLOR_GREEN); //uint16_t 110, uint16_t 88, uint16_t 16, uint16_t blue
x5 = x1;
b = b +1;
delay(1000);
}
else if(b>=5){
tft.drawRectangle(a1, b1, a2, b2, COLOR_BLACK);
a1 = a1 +1;
b1 = b1+1;
a2 = a2-1;
b2 = b2-1;
tft.drawRectangle(a1, b1, a2, b2, COLOR_BLUE);

tft.drawPixel(x1, y1, COLOR_BLACK);
x5 = x5 +1;
y5 = 2*(x5)+1;
x4 = x5;
x3 = x4-1;
x2 = x3-1;
x1 = x2-1;

y4 = 2*(x4) +1;
y3 = 2*(x3) +1;
y2 = 2*(x2) +1;
y1 = 2*(x1) +1;

tft.drawPixel(x5, y5, COLOR_BLUE);
tft.drawPixel(x4, y4, COLOR_BLUE);
tft.drawPixel(x3, y3, COLOR_BLUE);
tft.drawPixel(x2, y2, COLOR_BLUE);
tft.drawPixel(x1, y1, COLOR_BLUE);

delay(50);
}

}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.