A library to control LEGO wedo with the ESP32 through Bluetooth low energy
Connect to a WEDO2.0 that is advertising with the defined name.
Start connecting to the WEDO2.0 (do this after the wifi is initialized, if you're using wifi)
Writes a certain speed (-100,100) to the specified port.
If you look in front of the WEDO ports; the back of the wedo, this is the port overview
_________________ | port2 | port1 | |________|________| | | | | |_________________|
Sets the color of the RGB led on the wedo, you can choose from the list below
#define LEGO_COLOR_BLACK 0 #define LEGO_COLOR_PINK 1 #define LEGO_COLOR_PURPLE 2 #define LEGO_COLOR_BLUE 3 #define LEGO_COLOR_CYAN 4 #define LEGO_COLOR_LIGHTGREEN 5 #define LEGO_COLOR_GREEN 6 #define LEGO_COLOR_YELLOW 7 #define LEGO_COLOR_ORANGE 8 #define LEGO_COLOR_RED 9 #define LEGO_COLOR_WHITE 10
Let's the piezo in the WEDO make some noise, I'm not sure if the freqency and length are set correctly
Sends a direct output command to the WEDO2.0
- wifi_control.ino (it let's you set the direction of the motor connected to the wedo).
- button_motor.ino (it let's you controll the motor with the build in button on the ESP). (Nice start if you want to make a remote for you WEDO creation)