@@ -137,4 +137,6 @@ fabric.properties | |||
*.old | |||
# build | |||
/build | |||
/build | |||
/refs |
@@ -1,4 +1,4 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<project version="4"> | |||
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" /> | |||
<component name="CMakeWorkspace" IGNORE_OUTSIDE_FILES="true" PROJECT_DIR="$PROJECT_DIR$" /> | |||
</project> |
@@ -68,6 +68,7 @@ foreach (component ${COMPONENTS}) | |||
endforeach() | |||
list(REMOVE_DUPLICATES INCLUDE_DIRS) | |||
include_directories(${INCLUDE_DIRS}) | |||
include_directories(${IDF_PATH}/components/soc/esp32/include) | |||
include_directories("build/include") | |||
#include_directories("components/arduino-esp32/cores/esp32/") | |||
#include_directories("components/OneWire/") |
@@ -1,5 +1,3 @@ | |||
# Hello World Example | |||
# Laser Pong | |||
Starts a FreeRTOS task to print "Hello World" | |||
See the README.md file in the upper level 'examples' directory for more information about examples. | |||
ESP32 code to control 2 servos which draw (part of) a PONG game. |
@@ -17,6 +17,14 @@ void app_main() | |||
{ | |||
printf("Hello world!\n"); | |||
/* | |||
* According to the data sheet, the SG90 9g micro servos | |||
* operate at 0.1s / 60deg | |||
* and require a pwm signal at 50Hz | |||
* with duty length of "about" 1.0 - 1.5 - 2.0 ms | |||
* for all the way left, center, all the way right | |||
*/ | |||
ledc_timer_config_t timer_conf; | |||
timer_conf.duty_resolution = LEDC_TIMER_15_BIT; | |||
timer_conf.freq_hz = 50; | |||
@@ -33,6 +41,8 @@ void app_main() | |||
ledc_conf.timer_sel = LEDC_TIMER_0; | |||
ledc_channel_config(&ledc_conf); | |||
LEDC_CHANNEL_1 | |||
/* Print chip information */ | |||
esp_chip_info_t chip_info; | |||
esp_chip_info(&chip_info); |
@@ -20,8 +20,7 @@ CONFIG_LOG_BOOTLOADER_LEVEL_INFO=y | |||
CONFIG_LOG_BOOTLOADER_LEVEL_DEBUG= | |||
CONFIG_LOG_BOOTLOADER_LEVEL_VERBOSE= | |||
CONFIG_LOG_BOOTLOADER_LEVEL=3 | |||
CONFIG_BOOTLOADER_VDDSDIO_BOOST_1_8V= | |||
CONFIG_BOOTLOADER_VDDSDIO_BOOST_1_9V=y | |||
CONFIG_BOOTLOADER_VDDSDIO_BOOST=y | |||
# | |||
# Security features |