mirror of
https://github.com/avem-labs/Avem.git
synced 2023-09-01 15:18:49 +08:00
DEL&MOD: Clean
This commit is contained in:
parent
9f44ccf077
commit
71f6842948
11
README.md
11
README.md
@ -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)
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
BIN
rm_img/l9110.png
BIN
rm_img/l9110.png
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 |
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user