blackbox/main.h

changeset 7
f4e250d5402b
parent 6
2405aff29a51
child 37
136a79772098
--- a/blackbox/main.h	Tue Nov 15 12:51:04 2011 +0100
+++ b/blackbox/main.h	Wed Nov 16 12:29:09 2011 +0100
@@ -13,8 +13,8 @@
 #define MODUL_ST6               PD6
 
 #define I2C_PORT                PORTC
-#define I2C_SDA                 PC0
-#define I2C_SCL                 PC1
+#define I2C_SCL                 PC0
+#define I2C_SDA                 PC1
 
 #define LED1_PORT               PORTA
 #define LED2_PORT               PORTA
@@ -45,10 +45,10 @@
 #define CONTROLLER_PORT         PORTB
 #define CONTROLLER_MAX          360 // full throttle ADC value
 #define CONTROLLER_DIVISOR      (uint8_t)(CONTROLLER_MAX/15)
-#define CONTROLLER1_SW          4
-#define CONTROLLER2_SW          5
-#define CONTROLLER3_SW          6
-#define CONTROLLER4_SW          7
+#define CONTROLLER1_SW          PB4
+#define CONTROLLER2_SW          PB5
+#define CONTROLLER3_SW          PB6
+#define CONTROLLER4_SW          PB7
 #define CONTROLLER1_SPEED       0 // ADC channel #
 #define CONTROLLER2_SPEED       1 // ADC channel #
 #define CONTROLLER3_SPEED       2 // ADC channel #

mercurial