JeritanBlog telah ditukar nama BelajarBlogs...

MSI laptop can't see webcam



When you open camera it will display "We can't find your camera" at MSI laptop. I had installed software many time the camera and that it not work and then when I check back there is button for enable the camera for use it and then it works. It really easy to find your camera just click FN+F6(camera logo) it will enable your camera.I hope it will help you thank you :)

8TV Online (Malaysia)


The television channel targets the urban youth and Chinese audience demographics. 8TV's line up consists of dramas, sitcoms, and reality shows either produced in Malaysia or imported from other countries, mainly in the English and Chinese languages. 8TV broadcasts with the concept of "one station, two channels" in two languages shifts: 8TV in English and 八度空间 (pinyin: Bādù Kōngjiān) in Chinese.

Wait 5 to 10 second if not hear anything reload page

Interfacing Seven Segment Display



I put 7SEG-MPX4-CC at Port 2 and pushbutton at Port 1. If i press the pushbutton it will count down from 25 to 0 and when reach 0 it will display stop. It easy just store the hex number for 7 segment and then do program for one and tens for 7 segment.

Program c++ for Keil

#include
sbit PB1 = P1^0;
sbit D3= P3^0;
sbit D2=P3^1;
sbit D1=P3^2;
sbit D0=P3^3;
void delay_ms (int ms)
{
unsigned int i,j;
for (i=0;ifor (j=0;j<100 br="" j="">}
void countdown(void)
{
int count,delay;
unsigned char number [10] = {0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F};
for (count =25;count>-1;count--)
for (delay=0;delay<20 br="" delay=""> {
P3=0x17;
P2=number [count %10];
delay_ms(10);
P3=0x1B;
P2= number[count/10];
delay_ms(10);
}
}
void stop (void)
{
unsigned char stop[4] = {0x6D,0x78,0x3F,0x73};
{
D3=0;
P2 =0x6D;
delay_ms(5);
D3=1;
D2=0;
P2 =0x73;
delay_ms(5);
D2=1;
D1=0;
P2=0x3F;
delay_ms(5);
D1=1;
D0=0;
P2=0x73;
delay_ms(5);
D0=1;
}
}
void main (void)
{
if (PB1==0)
{
countdown();
stop();
}
}

Interfacing LEDs and Switches



I use two push button switches to Port 1 and 8 LED to Port 2 of AT89C51 microcontroller. Then when i push button 1 ,the LED will blink and for push button 2 , the LED will run running light patter 2 by 2 .

Programming c++ for Keil

#include
sbit LED_pin = P2;  // Defining LED PIN
sbit Switch_pin1 = P1^0;  // Defining Switch PIN
sbit Switch_pin2 = P1^1;  // Defining Switch PIN
 char pattern[] = {0xFF,0xFC,0xF3,0xCF,0x3F}; // led will be blink two by two

void delay(int ms) // Delay 250us
{
int i,j;
for (i=0;i for (j=0;j<250 br="" j="">}
void blink(void) //LED Blink
{
int i;
for (i=0;i<2 blink="" br="" continous="" i="" it=""> {
P2 = ~P2 ; //LED reverse
delay(250);
}
}
void twobytwo(void) // LED run the light pattern
{
int i;
for (i=0;i<5 br="" i=""> {
P2 = pattern[i];
delay(250);
}
}
void main(void)
{
P2 = 0x00 ;
while(1)
{
if (Switch_pin1 == 0 && Switch_pin2 == 1) //if switch 1 pressed
{
P2 = 0xFF ;
blink(); // LED will blink
}
else if (Switch_pin1 == 1 && Switch_pin2 == 0) //if switch 2 pressed
{
P2 = 0xFF ;
twobytwo(); //LED run the light pattern
}
 else
{
P2 = 0xFF;
}
}
}

Pushbutton with delay for turn on led



This code to turn ON the LED for 0.5 sec(500) when switch is pressed. What i use Microcontroller AT89C51 and use port 1 for pushbutton and port 2 for output LED.





Programming c++ for Keil 

#include /*special functionregister declarations*/
sbit LED_pin = P2^0;  // Defining LED PIN
sbit Switch_pin = P1^0;  // Defining Switch PIN
void Delay(int); // Function Prototype declaration
void main(void)
{
Switch_pin = 1; // Making Switch PIN Input
 while(1)
{
if (Switch_pin == 0) //if switch pressed
{

LED_pin = 0; //led will turn on
Delay(500); //delay for 0.5 sec
}
 else
{
       LED_pin = 1; //led turn off
Delay(500); //delay for 0.5 sec
}
}
}
void Delay(int k) //this for delay
{
int i;
for(i=0;i }// end of main


Bina Badan

Dulu kawan abe nik ada ajak pergi main gym . Masa mula2 main memang sakit seminggu ha3. Memang rasa nak menagis sebab x pernah main kan. Lepas tu main lagi ikut turutan nasib baik ada sifu yang mengajar. Kita kalau boleh kena banyak bertanya dengan orang yang dah main . Jangan suka hati je main sorang lepas tu buat-buat tau main nanti x jadi. 

Mass Gainer yang mula-mula abe nik beli Dymatize memang terbaik cepat gila perubahan dalam masa sebulan tu dah nampak tapi kena main hardcore lah jangan angkat sikit je. Bila main tu ada perubahan memang rasa seronok je kena pulak ada sifu dengan kawan. Kalau sorang2 memang bosanlah. Kalau boleh minum masa tengah main sikit2 sampai abis.


Lepas tu Abe Nik cuba pulak Anabolic memang tip top terbaik tapi perutlah ABe Nik memang susah nak baut 6 pax . Kalau 6 Pax memang korang kena banyak bersabarlah memang lamalah nak ada bentuk. Nik Main dalam amsa 3 bulan memang nampak perubahan dan kalau boleh berterusan kalau tak perut akan boncet hi3.



Cakap pasal workout kalau boleh ikutlah turutan kalau nak lebih berkesan harinie buat bahagian tangan esoknya dada selepas tu belakang dan buat secara berterusan mengikut jadual yang korang dah buat. Kalau boleh jangan semua buat dalam masa satu hari. Memang susahlah nak ada perubahan.