Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#include <DISPLAY 7SEG.h>
- #include <16F88.h>
- #device ADC=16
- #FUSES NOWDT //No Watch Dog Timer
- #FUSES NOBROWNOUT //No brownout reset
- #FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
- #use delay(oscillator=4000000)
- const int numero[]= {63, 6, 91, 79, 102, 109, 125, 7, 127, 103};
- void main()
- {
- while(TRUE)
- {
- for (int k=0; k<10; k++){
- for (int j=0; j<10; j++ ){
- for (int i=0; i<40; i++){
- output_low(PIN_A0);
- output_high(PIN_A1);
- output_b(numero[j]);
- delay_ms(5);
- output_low(PIN_A1);
- output_high(PIN_A0);
- output_b(numero[k]);
- delay_ms(5);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement