summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/robot.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/Concept/Framework/robot.c')
-rwxr-xr-xsource/Concept/Framework/robot.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/Concept/Framework/robot.c b/source/Concept/Framework/robot.c
index d8ea1c2..0e4e9ac 100755
--- a/source/Concept/Framework/robot.c
+++ b/source/Concept/Framework/robot.c
@@ -13,8 +13,8 @@ Robot::Robot()
DDRB = (1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 6) | (1 << 7);
PORTB = (1 << 1);
- //All output except PC4/PC5 (mousesensor SDA)
- DDRC = (1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 6) | (1 << 7);
+ //All output except PC4/PC7 (mousesensor SDA)
+ DDRC = (1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 5) | (1 << 6);
PORTC = 0;
//All output except PD0+1(I2C) + 2+3(RS232)
@@ -101,8 +101,8 @@ uint16 Robot::GetADCValue(uint8 channel)
uint32 result = 0;
- //Activate ADC and set division factor to 8
- ADCSRA = (1 << ADEN) | (1 << ADPS1) | (1 << ADPS0);
+ //Activate ADC and set division factor to 128
+ ADCSRA = (1 << ADEN) | (1 << ADPS2) | (1 << ADPS1) | (1 << ADPS0);
//Set multiplexer channel
ADMUX = channel;