joystick_bjk

Dependencies:   mbed VL53L1X

Revision:
1:fd1e7e2d0780
Child:
2:284491e0f6bf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CONFIG.h	Tue Aug 27 04:52:07 2019 +0000
@@ -0,0 +1,49 @@
+#pragma once
+
+//#define BH_BOARD
+#define SH_BOARD
+
+
+#if defined BH_BOARD
+    #define     ToF
+    #define     ToF_I2C_SDA         PB_7
+    #define     ToF_I2C_SCL         PB_6
+    
+    #define     ToF_XShut_1         PF_0
+    #define     ToF_XShut_2         PF_1
+    #define     ToF_XShut_3         PA_8
+    
+    #define     MOTOR_REVERSE_R     PA_0
+    #define     MOTOR_REVERSE_L     PA_1
+    
+    #define     MOTOR_THROTTLE_R    PA_6
+    #define     MOTOR_THROTTLE_L    PA_5
+    
+    #define     BLUETOOTH_RX        PA_10
+    #define     BLUETOOTH_TX        PA_9
+
+    #define     UART_BAUD           115200
+    #define     DAC_ONE_STEP        0.1f
+////////////////////////////////////////////////////
+#elif defined SH_BOARD
+
+//    #define     ToF
+//    #define     ToF_I2C_SDA         NC
+//    #define     ToF_I2C_SCL         NC
+    
+//    #define     ToF_XShut_1         NC
+//    #define     ToF_XShut_2         NC
+//    #define     ToF_XShut_3         NC
+    
+    #define     MOTOR_REVERSE_R     D11
+    #define     MOTOR_REVERSE_L     D12
+    
+    #define     MOTOR_THROTTLE_R    A4
+    #define     MOTOR_THROTTLE_L    A5
+    
+    #define     BLUETOOTH_RX        D0
+    #define     BLUETOOTH_TX        D1
+    
+    #define     UART_BAUD           115200
+    #define     DAC_ONE_STEP        0.1f
+#endif
\ No newline at end of file