Код для поиска

Lesson 6-1: Arduino Variables and Data Types: Integers

Lesson 6-1: Arduino Variables and Data Types: Integers

This code is part of Lecture 6, Data Types: Integer. Integer documentation: https://www.arduino.cc/reference/en/language/variables/data-types/int/
531-Lesson 6: Introduction to Arduino Data Types
Язык: C++
/*
* This code is part of Step-by-step Arduino Course
   Code: Lecture 06-1
* Arduino Variables and Data Types: Integer

with over 100 lectures free on YouTube. Watch it here: http://robojax.com/L/?id=338
Get the code for the course: http://robojax.com/L/?id=339
* Written by Ahmad Shamshiri for Robojax, robojax.com, YouTube.com/robojaxTV
* Feb 10, 2019
Please watch video instructions here: https://youtu.be/n0z6fjww8eA
This code is available at: http://robojax.com/course1/?vid=lecture06

*/

void setup() {
int age = 36;
int days = age * 365;

	
 Serial.begin(9600);
 Serial.println("Robojax Step-by-step Arduino Course");
 	//Robojax Step-by-step Arduino Course http://robojax.com/L/?id=338

 Serial.print("Age:");
 Serial.println(age);
 Serial.print("Days:"); 
 Serial.println(days);
 Serial.println();



int temperature = B101101; // binary integer value 45
 Serial.print("B101101:"); 
 Serial.println(temperature);
 Serial.println();


int year = 0x7E3;// hex value for 2019
 Serial.print("0x7E3:"); 
 Serial.println(year);
 Serial.println();




}

void loop() {
  // put your main code here, to run repeatedly:
  //Robojax Step-by-step Arduino Course 

}

Ресурсы и ссылки

Ресурсов пока нет.

Файлы📁

Нет доступных файлов.