Mercurial > louis > kiibohd-controller
comparison Scan/ADCTest/scan_loop.c @ 308:ab4515606277
Fix whitespace
Use a consistent standard - Tabs in front for indenting, spaces after for anything else. This way everything stays nice and lined up while also letting users change there prefered indent level. Most of the new files from Haata where already in this format.
author | Rowan Decker <Smasher816@gmail.com> |
---|---|
date | Sun, 08 Mar 2015 18:40:01 -0700 |
parents | 9afed592bcb5 |
children |
comparison
equal
deleted
inserted
replaced
305:4617ef5e06f1 | 308:ab4515606277 |
---|---|
67 // Scan Module command dictionary | 67 // Scan Module command dictionary |
68 char scanCLIDictName[] = "ADC Test Module Commands"; | 68 char scanCLIDictName[] = "ADC Test Module Commands"; |
69 const CLIDictItem scanCLIDict[] = { | 69 const CLIDictItem scanCLIDict[] = { |
70 #if defined(_mk20dx128_) || defined(_mk20dx256_) || defined(_mk20dx256vlh7_) // ARM | 70 #if defined(_mk20dx128_) || defined(_mk20dx256_) || defined(_mk20dx256vlh7_) // ARM |
71 { "adc", "Read the specified number of values from the ADC at the given pin: <pin> [# of reads]" | 71 { "adc", "Read the specified number of values from the ADC at the given pin: <pin> [# of reads]" |
72 NL "\t\t See \033[35mLib/pin_map.teensy3\033[0m for ADC0 channel number.", cliFunc_adc }, | 72 NL "\t\t See \033[35mLib/pin_map.teensy3\033[0m for ADC0 channel number.", cliFunc_adc }, |
73 { "adcInit", "Intialize/calibrate ADC: <ADC Resolution> <Vref> <Hardware averaging samples>" | 73 { "adcInit", "Intialize/calibrate ADC: <ADC Resolution> <Vref> <Hardware averaging samples>" |
74 NL "\t\tADC Resolution -> 8, 10, 12, 16 (bit)" | 74 NL "\t\tADC Resolution -> 8, 10, 12, 16 (bit)" |
75 NL "\t\t Vref -> 0 (1.2 V), 1 (External)" | 75 NL "\t\t Vref -> 0 (1.2 V), 1 (External)" |
76 NL "\t\tHw Avg Samples -> 0 (disabled), 4, 8, 16, 32", cliFunc_adcInit }, | 76 NL "\t\tHw Avg Samples -> 0 (disabled), 4, 8, 16, 32", cliFunc_adcInit }, |
77 #endif | 77 #endif |
78 #if defined(_mk20dx256_) || defined(_mk20dx256vlh7_) // DAC is only supported on Teensy 3.1 | 78 #if defined(_mk20dx256_) || defined(_mk20dx256vlh7_) // DAC is only supported on Teensy 3.1 |
79 { "dac", "Set DAC output value, from 0 to 4095 (1/4096 Vref to Vref).", cliFunc_dac }, | 79 { "dac", "Set DAC output value, from 0 to 4095 (1/4096 Vref to Vref).", cliFunc_dac }, |
80 { "dacVref", "Set DAC Vref. 0 is 1.2V. 1 is 3.3V.", cliFunc_dacVref }, | 80 { "dacVref", "Set DAC Vref. 0 is 1.2V. 1 is 3.3V.", cliFunc_dacVref }, |
81 #endif | 81 #endif |