systeminfo
date
date /t
#include "DHT.h" | |
#define DHTPIN 10 // DHT sensor data pin connected to the Arduino | |
// Definer DHT sensor type | |
#define DHTTYPE DHT11 // DHT 11 | |
//#define DHTTYPE DHT22 // DHT 22 (AM2302) | |
//#define DHTTYPE DHT21 // DHT 21 (AM2301) | |
// Initialize DHT sensor | |
DHT dht(DHTPIN, DHTTYPE); |
int led = 13; | |
void setup() { | |
pinMode(led, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(led, HIGH); | |
delay(1000); | |
digitalWrite(led, LOW); | |
delay(1000); |
First we need to reboot the system.
Secondly from the grub boot loader we need to press e from the keyboard. Here e means edit.
Now go to end of the line number-4 and write rd.break Note: rd = rescue disk
Then press Ctrl+X to load the system
VIM is a terminal based text editor. It is very handy to use. This is the most powerful text editor that by default comes with almost all Unix/Linux system.
Basic guide of VIM editor has given below:
Insert Mode --> Command = (i)
Escape Mode --> Command = (Esc)
File save and quit --> Command = (:x)
File permission and ownership is very important in linux system.