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

Library 74hc595.c

 
Post new topic   Reply to topic    CCS Forum Index -> Code Library
View previous topic :: View next topic  
Author Message
Metabee



Joined: 26 Dec 2014
Posts: 1

View user's profile Send private message Send e-mail

Library 74hc595.c
PostPosted: Fri Dec 26, 2014 9:44 pm     Reply with quote

I would like to use the library 74hc595.c
For this project! thank you!
Code:

// Arrow left
#include <16f84.h> // library
#use delay(clock=4000000) // frequency
#fuses xt,protect // fuses                                   
#use fast_io(b) // saves memory
// Variable of type integer 8bit and constant to save memory
int8 const matriz[221]={0b00000010,0b00000011,0b00000010,0b00010010,
0b00011010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,
0b00011010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,
0b00110010,0b00010010,0b00000010,0b00001010,0b00000010,0b00010010,
0b00011010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,
0b00110010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,
0b00011010,0b00010010,0b000101100,0b00010010,
0b00011010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,
0b00110010,0b00010010,
0b00011010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,
0b00011010,0b00010010,
0b00110010,0b00010010,0b00000000,0b00000001,0b00000000,0b00000100,0b00000000,
0b00000010,0b00000011,0b00000010,
0b00001010,0b00000010,0b00001010,0b00000010,0b00001010,0b00000010,
0b00011010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,
0b00110010,0b00010010,
0b00011010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,
0b00011010,0b00010010,0b00011010,0b00010010,
0b00011010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,
0b00011010,0b00010010,0b00011010,0b00010010,
0b00011010,0b00010010,0b00011010,0b00010010,0b00011010,0b00010010,
0b00110010,0b00010010,
0b00010001,0b00010000,0b00010001,0b00010000,0b00010001,0b00010000,
0b00010001,0b00010000,0b00010001,0b00010000,0b00010001,0b00010000,
0b00010001,0b00010000,
0b00010001,0b00010000,0b00010001,0b00010000,0b00010001,0b00010000,
0b00010001,0b00010000,0b00010001,0b00010000,
0b00010001,0b00010000,0b00010001,0b00010000,0b00010001,0b00010000,
0b00010001,0b00010000,
0b00010010,0b00010011,0b00010010,0b00010001,0b00010000,0b00010001,
0b00010000,0b00010100,0b00010000,
0b00000000,0b00001000,0b00000000,0b00001000,0b00000000,0b00001000,
0b00000000,0b00001000,0b00000000,0b00001000,0b00000000,
0b00010000,0b00011000,0b00010000,0b00011000,0b00010000,0b00100000,0b00000000,
0b00010000,0b00011000,0b00010000,0b00011000,0b00010000,0b00011000,0b00010000,
0b00011000,0b00010000,0b00011000,0b00010000,
0b00010000,0b00011000,0b00110000,0b00010000,0b00010001,0b00010000,0b00010001,
0b00010000,0b00010001,0b00010000,
0b00010001,0b00010000,0b00010001,0b00010000,0b00010001,0b00010000,0b00010001,
0b00010000,0b00010001,0b00010000,0b00010001,0b00010000,
0b00010001,0b00010000,0b00010001,0b00010000,0b00010001,0b00010000,0b00010001,
0b00010000,0b00010001,0b00010000,0b00000100};

void main (){ //main function

int  i; // Variable

set_tris_b(0x00);// set the pin as input or output
set_tris_a(0xff);

while (true){   // while actually infinite loop
  for(i=0;i<221;i++){ // loop

  output_b(matriz[i]); // Call the vector or binary numbers

  delay_us(25); // Here you choose the time}
}

}


http://forum.clubedohardware.com.br/topic/1098275-traduzindo-a-biblioteca-74hc595c-da-ccs-c-compiler/
http://www.shrinkpictures.com/processed/phpyY7drf_c2PM.jpg
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> Code Library 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