CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Probléme GLCD128x64

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
waoulmrewa



Joined: 30 Apr 2011
Posts: 1

View user's profile Send private message

Probléme GLCD128x64
PostPosted: Sat Apr 30, 2011 8:54 am     Reply with quote

j'ai besoin d'utiliser deux boutons d’interruption.le bouton de Sélection et l'autre validation.pour le moment je cherche une solution pour utiliser seulement le bouton de sélection(Pin_B0) dans le but de sélectionner a chaque appuis sur le bouton un capteur.si quel qu’un a une idée svp aider moi dans l'approche temps et merci.

Translation:
I need to use two buttons with interrupts. One button to select and another for validation. For now I want a solution to use only PIN_B0 to select. Any ideas ?

Code:

#include <18F4620.h>
#use delay(clock=8M)
#use rs232(baud=9600,parity=N,xmit= PIN_C6,rcv=PIN_C7)
#include <CE_GLCD.c>


#include<graphics.c>
//#use fast_IO(A)
//#use fast_IO(B)
#use i2c(Master,sda=PIN_C4,scl=PIN_ C3)
char text1[]="Capteur1";
char text2[]="Capteur2";
char text3[]="Capteur3";
char text4[]="Capteur4";

#int_EXT

void spi1(){

}

#int_EXT1
void spi2(){

void main() {
set_tris_d(00);
GLCD_init(ON);

while(true){

port_b_pullups(true);
ext_int_edge(0,H_TO_L);
ext_int_edge(1,H_TO_L);
enable_interrupts(int_EXT);
enable_interrupts(int_EXT1);
enable_interrupts(GLOBAL);

glcd_text57(0,0,text1,1,ON);
glcd_text57(0,10,text2,1,ON);
glcd_text57(0,20,text3,1,ON);
glcd_text57(0,30,text4,1,ON);

}
}


Schematic:
http://www.ii1i.com/uploads7/8d6016a066.jpg
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun May 01, 2011 3:48 pm     Reply with quote

This thread has some links to push-button code:
http://www.ccsinfo.com/forum/viewtopic.php?t=42285
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group