This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TB6612FNG - Driver motor | |
#define PWMA 4 | |
#define AIN1 16 | |
#define AIN2 17 | |
#define PWMB 5 | |
#define BIN1 18 | |
#define BIN2 19 | |
#define STBY 2 | |
// Configuração PWM para uso do LEDC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TB6612FNG - Driver motor | |
#define PWMA 4 | |
#define AIN1 16 | |
#define AIN2 17 | |
#define PWMB 5 | |
#define BIN1 18 | |
#define BIN2 19 | |
#define STBY 2 | |
// Configuração PWM para uso do LEDC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <WiFi.h> | |
#include <AsyncTCP.h> | |
#include <ESPAsyncWebServer.h> | |
const char* ssid = "Internet do Pedrinho 2.4 GHz"; | |
const char* password = "cachorronuclear"; | |
// Web server e WebSocket | |
AsyncWebServer server(80); | |
AsyncWebSocket ws("/ws"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TB6612FNG - Driver motor | |
#define PWMA 4 | |
#define AIN1 16 | |
#define AIN2 17 | |
#define PWMB 5 | |
#define BIN1 18 | |
#define BIN2 19 | |
#define STBY 2 | |
// Configuração PWM para uso do LEDC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TB6612FNG - Driver motor | |
#define PWMA 4 | |
#define AIN1 16 | |
#define AIN2 17 | |
#define PWMB 5 | |
#define BIN1 18 | |
#define BIN2 19 | |
#define STBY 2 | |
// Configuração PWM para uso do LEDC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TB6612FNG - Driver motor | |
#define PWMA 4 | |
#define AIN1 16 | |
#define AIN2 17 | |
#define PWMB 5 | |
#define BIN1 18 | |
#define BIN2 19 | |
#define STBY 2 | |
// Configuração PWM para uso do LEDC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TB6612FNG - Driver motor | |
#define PWMA 4 | |
#define AIN1 16 | |
#define AIN2 17 | |
#define PWMB 5 | |
#define BIN1 18 | |
#define BIN2 19 | |
#define STBY 2 | |
// Configuração PWM para uso do LEDC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TB6612FNG - Driver motor | |
#define PWMA 4 | |
#define AIN1 16 | |
#define AIN2 17 | |
#define PWMB 5 | |
#define BIN1 18 | |
#define BIN2 19 | |
#define STBY 2 | |
uint8_t pwmA = 94; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/io.h> | |
#include <util/delay.h> | |
#define F_CPU 8000000; | |
int main(void) | |
{ | |
DDRC = 0xFF; // Define todo o PORTC como saída. | |
PORTC = 0xFF; // Liga todo o PORTC. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/io.h> | |
#include <util/delay.h> | |
#define F_CPU 8000000 | |
int main(void) | |
{ | |
DDRC = 0xFF; // Define todo o PORTC como saída. | |
while (1) | |
{ |
NewerOlder