DEL&MOD: Clean

This commit is contained in:
but0n 2016-09-13 09:57:55 +08:00
parent 9f44ccf077
commit 71f6842948
7 changed files with 21 additions and 11 deletions

View File

@ -64,13 +64,4 @@ MPU6050 | BLDC | Wi-Fi | LED
![](rm_img/osc.png)
### USART In-System Programming
![](rm_img/usart.png)
### Motor driver
![](rm_img/l9110.png)
### MPU6050
![](rm_img/mpu6050.png)
### MOTORS 4-CHANNEL LEFT & 4-CHANNEL RIGHT
![](rm_img/motors.png)
![](rm_img/usart.png)

View File

@ -9,6 +9,6 @@ void wifi_init();
void wifi_sendSingleByte(unsigned char cmd);
void wifi_sendData(char * cmd);
void wifi_sendCmd(char * cmd);
void wifi_Config();
extern void delay(volatile unsigned int count);
#endif

View File

@ -49,3 +49,13 @@ void wifi_sendCmd(char * cmd) {
wifi_sendSingleByte(0x0D);
wifi_sendSingleByte(0x0A);
}
void wifi_Config() {
wifi_init();
wifi_sendCmd("AT+CWMODE=2");
delay(50);
wifi_sendCmd("AT+CIPMUX=1");
delay(50);
wifi_sendCmd("AT+CIPSERVER=1,80");
delay(50);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

View File

@ -100,6 +100,15 @@ void Comput(SixAxis cache) {
int main() {
wifi_Config();
while(1) {
wifi_sendCmd("AT+CIPSEND=0,20");
delay(50);
wifi_sendCmd("<html>aki<br></html>");
delay(1000);
}
initLED();
motor_PWM_Init(28800,5);