Author |
Message |
Topic: 4 Decimal, 7-Segment counter (0-9999) |
TselelTJ
Replies: 3
Views: 7922
|
Forum: General CCS C Discussion Posted: Thu Mar 18, 2010 8:17 am Subject: 4 Decimal, 7-Segment counter (0-9999) |
Here is the working code, I finally got it right...
#include "Assignment.h"
char map[10]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};
void main() ... |
Topic: 4 Decimal, 7-Segment counter (0-9999) |
TselelTJ
Replies: 3
Views: 7922
|
Forum: General CCS C Discussion Posted: Fri Mar 12, 2010 3:26 am Subject: 4 Decimal, 7-Segment counter (0-9999) |
I was able to do the ff but now i need help with the switch, If the switch is open all segments must be off and when closed it must start from 0.
#include "Counter_7Seg.h"
char map ... |
Topic: 4 Decimal, 7-Segment counter (0-9999) |
TselelTJ
Replies: 3
Views: 7922
|
Forum: General CCS C Discussion Posted: Wed Mar 10, 2010 11:27 am Subject: 4 Decimal, 7-Segment counter (0-9999) |
Good Day ppl.
I'm taking my baby steps with ccs code.
May somebody help me with the code for the following:
The cct must count from 0 to 9999 and it uses a switch which stops the count at any m ... |
|