#include "C:\Program Files\PICC\Examples\hienthiso.h"
#include "C:\Program Files\PICC\Drivers\LCD.C"
#use delay(clock=20000000)
#byte portD=0x08
#byte portB=0x06
#bit RB0=0x06.0
#use fast_io(b)
#use fast_io(d)
int8 mode,i,j;
#INT_EXT
void ext_isr()
{
mode++;
delay_ms(1);
if(mode==3)
{
mode=0;
}
}
void program1();
void program2();
void main()
{
mode=0;
set_tris_b(0b00000001);
portB=0x00;
set_tris_d(0);
portD=0x00;
enable_interrupts(int_ext);
ext_int_edge(H_TO_L);
enable_interrupts(GLOBAL);
while(1)
{
switch(mode)
{
case 1rogram1();break;
case 2rogram2();break;
}
}
}
void program1()
{
if(mode==1)
{
lcd_putc('\f');
for(i=0;i<5;i++)
{
lcd_init();
lcd_gotoxy(1,1);
lcd_putc("NGUYEN VAN THANH");
delay_ms(20);
lcd_gotoxy(1,1);
lcd_putc('\f');
delay_ms(20);
}
}
}
void program2()
{
if(mode==2)
{
lcd_putc('\f');
for(j=0;j<5;j++)
{
lcd_init();
lcd_gotoxy(1,1);
lcd_putc("HOANG THI HOAI MY");
delay_ms(20);
lcd_gotoxy(1,1);
lcd_putc('\f');
delay_ms(20);
}
}
}
I have a problem with code for LCD circuit.Please help me ! It doesn't work.
I have two solar powered garden lights that is my contribution to reduce global warming.
Someone once asked me why you would use solar panels and explained that the Aluminum used to make the frames and the whole process of making the solar panels would probably produce more carbon than the panel would counter-act in a long time. Not sure how right they were but I'd say it has a touch of truth about it.
But anyway, I like to tinker, that's why I build stuff.
G'day Nigel,
That material is 60% shade cloth, ages ago I made a solid fence post type frame for the outer wall and sewed a pocket in the shadecloth to attach it to the house. As it's on the northen face it keeps the house a heap cooler in summer and the missus loves it as she raises herbs in it. When it's 44C in the shade I run a mist of water in the shadehouse and the house drops in temp to liveable. Before I made the shade house the slate floor tiles in the house got that hot you near burnt ya feet on them.
Now when ya say it's out in the middle of no-where, I'm less than an hour from the city and it takes less than an hour to get to work.
The burlap walls are stronger than the rice-paper walls used in another country.
I also live in a city
I have never heard of nor seen a wet "fabric" wall used for cooling.
The smog has been fixed so it is gone.Thats because you city dwellers never get out of ya shanty house and into the real world. There aint nuffin like livin in the country away from the city smog and 1,000's of ferals roaming around lookin to break into ya house. Out here in the country we hangup would be robbers, coat their nether parts with honey an tie em to an anthill...
Out here in the country we hangup would be robbers, coat their nether parts with honey an tie em to an anthill...
Maybe there are no police out in the Boonies. Explains why there is so much crime.No police involvement?
Robert-Jan
I know this is a bit stale... but why you think there is so much crime in the boonies. It is actualy much less as indicated by lower insurance rates.Maybe there are no police out in the Boonies. Explains why there is so much crime.
I know this is a bit stale... but why you think there is so much crime in the boonies. It is actualy much less as indicated by lower insurance rates.
There was talk about robbers in the boonies. Hardly anybody gets robbed in my city.I know this is a bit stale... but why you think there is so much crime in the boonies. It is actualy much less as indicated by lower insurance rates.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?