Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void display (uint16_t num) // FUNCTION TO DISPLAY VALUES ON SSD
- {
- switch(num)
- {
- case 0:
- PORTD=0x3F;
- break;
- case 1:
- PORTD=0×06;
- break;
- case 2:
- PORTD=0x5B;
- break;
- case 3:
- PORTD=0x4F;
- break;
- case 4:
- PORTD=0×66;
- break;
- case 5:
- PORTD=0x6D;
- break;
- case 6:
- PORTD=0x7D;
- break;
- case 7:
- PORTD=0×07;
- break;
- case 8:
- PORTD=0x7F;
- break;
- case 9:
- PORTD=0x6F;
- break;
- default:
- PORTD=0xFF;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement