Quellcode durchsuchen

Add missing include

master
Thorsten Riess vor 1 Jahr
Ursprung
Commit
692d7affff
6 geänderte Dateien mit 18 neuen und 8 gelöschten Zeilen
  1. 3
    1
      .gitignore
  2. 1
    1
      .idea/misc.xml
  3. 1
    0
      CMakeLists.txt
  4. 2
    4
      README.md
  5. 10
    0
      main/laserpong_main.c
  6. 1
    2
      sdkconfig

+ 3
- 1
.gitignore Datei anzeigen

@@ -137,4 +137,6 @@ fabric.properties
*.old

# build
/build
/build

/refs

+ 1
- 1
.idea/misc.xml Datei anzeigen

@@ -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>

+ 1
- 0
CMakeLists.txt Datei anzeigen

@@ -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/")

+ 2
- 4
README.md Datei anzeigen

@@ -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.

+ 10
- 0
main/laserpong_main.c Datei anzeigen

@@ -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);

+ 1
- 2
sdkconfig Datei anzeigen

@@ -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

Laden…
Abbrechen
Speichern