??? 07/28/07 00:56 Read: times |
#142483 - the simplest way Responding to: ???'s previous message |
U8 code table[] ={0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80}:
ADCF = table[channel]; fast, efficien and small Erik PS it is rare to see a variable in capitals. |
Topic | Author | Date |
A Simpler Way? | 01/01/70 00:00 | |
Logical AND ? | 01/01/70 00:00 | |
Shift? | 01/01/70 00:00 | |
I Agree. | 01/01/70 00:00 | |
Another Option | 01/01/70 00:00 | |
the simplest way | 01/01/70 00:00 | |
capitals | 01/01/70 00:00 | |
I copyued what the OP used | 01/01/70 00:00 | |
The common use of CAPs in C | 01/01/70 00:00 | |
totally agree, however | 01/01/70 00:00 | |
Why are you rambling about variables... | 01/01/70 00:00 | |
not to me | 01/01/70 00:00 | |
Variable capitalisation? | 01/01/70 00:00 | |
'code 'never is | 01/01/70 00:00 | |
Did not think it mattered. | 01/01/70 00:00 | |
Code modifier | 01/01/70 00:00 | |
both | 01/01/70 00:00 | |
Use both | 01/01/70 00:00 | |
C++ ? | 01/01/70 00:00 | |
Mixed | 01/01/70 00:00 | |
Extensions | 01/01/70 00:00 | |
Experience | 01/01/70 00:00 |