Arduino 5110 Red LCD Display Use Of

Connection Pins

1 vcc 5V
2 gnd gnd
3 sce 12
4 rst 11
5 d/c 10
6 dn mosi 9
7 sclk 8
8 led 3,3V

Library’s:

LCD5110_Basic
LCD5110_Graph

Codes:

#include <LCD5110_Graph.h>

LCD5110 myGLCD(8,9,10,11,12);
extern uint8_t TinyFont[];
extern uint8_t SmallFont[];
extern uint8_t MediumNumbers[];
extern uint8_t BigNumbers[];

void setup() {
  // put your setup code here, to run once:
  pinMode(7, OUTPUT);
  digitalWrite(7,LOW);
  myGLCD.InitLCD();
  myGLCD.setContrast(60);
  //myGLCD.clrScr();
}

void loop() {
  // put your main code here, to run repeatedly:
myGLCD.setFont(TinyFont);
myGLCD.print("Champions",20,0);
myGLCD.setFont(SmallFont);
myGLCD.print("FENERBAHCE",10,10);
myGLCD.setFont(BigNumbers);
myGLCD.printNumI(1907,7,25);
myGLCD.update();
delay(200); 
}

Javascript First Lesson

Functions

function lifeIn(age) {
    var day=(90-age)*365;
    var week=(90-age)*52;
    var month=(90-age)*12;
    console.log("You have "+day+" days,"+week+" weeks,"+month+" months left.");
}

lifeIn(56);

Arrays

var guestName=prompt("what's your name?");

var guestList=["Angela","Jack","Sam","Andrea","Messi","Erdi"];

if(guestList.includes(guestName)){
    console.log("Welcome!");
}
else{
    console.log("Sorry, maybe next time.");
}

includes is true or false return value.

3 fizz 5 buzz 3 and 5 fizzbuzz write code:

var output=[];
var count=1;

function fizzBuzz() {
if(count%3===0 && count%5===0)
{
    output.push("FizzBuzz");
}
    else if(count%3===0){
        output.push("fizz");
    }
        else if(count%5===0){
           output.push("buzz"); 
        }
    else{
        output.push(count);
    }

    count++;
    

    console.log(output);
}

Print:

functions, arrays and math library(floor – random):

var names=["angela","ben","Jenny","Micheal","Chloe"];

function whosPaying(names) {

    var numberOfPeople=names.length;
    var rnd=Math.floor(Math.random()*numberOfPeople);
    var randomPerson=names[rnd];

    return randomPerson+" is going to buy lunch today.";
    
}

whosPaying(names);

Print:

Yine Yeniden Merhaba Dünya :)

Hello World, Again 🙂

My site active again.

Let’s begin.

KAYNAKLAR:

https://learnxinyminutes.com/ x i y dakikada öğrenme

http://www.meetup.com/

HTML – CSS – JAVASCRIPT ÖGRENME:

FreeCodeCamp: https://www.freecodecamp.org/

Codecademy: https://www.codecademy.com/

React: https://react.dev/

MDN: https://developer.mozilla.org/en-US/ __________________

PROJE ÖRNEKLERİ:

30 Günlük Javascript Kod Challenge: https://javascript30.com/ ________________

İŞ MÜLAKATINA HAZIRLIK:

Codewars: https://www.codewars.com/

LeetCode: https://leetcode.com/ ________________

GITHUB: GitHub: https://github.com/ ________________

UDEMY KURSLARI: Colt Steele Dr. Angela Yu ________________

YOUTUBE SAYFALARI: DaveGrayTeachesCode JamesQQuick Treehouse LearWithJason TheNetNinja Jack Herrington Coding Garden The Coder Coder The Coding Train LearnCode.academy Traversy Media Free Code Camp Kevin Powell _________________