diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index 17c7c71..0000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,78 +0,0 @@ -// For format details, see https://aka.ms/devcontainer.json. For config options, see the -// README at: https://github.com/devcontainers/templates/tree/main/src/python -{ - "name": "Python 3", - // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/python:1-3.11-bookworm", - - // Features to add to the dev container. More info: https://containers.dev/features. - // "features": {}, - "features": { - "ghcr.io/devcontainers-contrib/features/apt-get-packages:1": { - "packages": "usbutils,libusb-1.0,texinfo,libftdi1,libtinfo5,gdb-arm-none-eabi,gcc-arm-none-eabi,cmake" - } - }, - - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], - - "runArgs": [ - "-v", "/dev/bus/usb:/dev/bus/usb", - "-v", "/usr/lib/udev/hwdb.bin:/usr/lib/udev/hwdb.bin:ro", - "-v", "/lib/udev/hwdb.bin:/lib/udev/hwdb.bin:ro", - "-v", "/usr/share/hwdata/usb.ids:/usr/share/hwdata/usb.ids:ro", - "-v", "/run/udev:/run/udev", - "-v", "/sys:/sys:ro", - "--privileged", - "--device-cgroup-rule", "c 188:* rmw", - "--device-cgroup-rule", "c 166:* rmw" - ], - - "mounts": [ - { - "source": "${localWorkspaceFolder}/../esphome", - "target": "${containerWorkspaceFolder}/../esphome", - "type": "bind" - }, - { - "source": "${localEnv:HOME}/.platformio", - "target": "/home/vscode/.platformio", - "type": "bind" - }, - { - "source": "${localWorkspaceFolder}/../rp2040", - "target": "${containerWorkspaceFolder}/../rp2040", - "type": "bind" - }, - { - "source": "/opt/openocd-rp2040", - "target": "/opt/openocd-rp2040", - "type": "bind" - } - ], - - // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "pip3 install -r requirements.txt", - - // Configure tool-specific properties. - "customizations": { - "vscode": { - "extensions": [ - "ms-vscode.cpptools-extension-pack", - "jbenden.c-cpp-flylint", - "ESPHome.esphome-vscode", - "ms-python.vscode-pylance", - "marus25.cortex-debug", - "ms-vscode.cpptools", - "ms-vscode.cmake-tools", - "mikestead.dotenv", - "ZixuanWang.linkerscript", - "alefragnani.Bookmarks", - "ciprianelies.arm-assembly-syntax" - ] - } - }, - - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. - // "remoteUser": "root" -} diff --git a/.gitignore b/.gitignore deleted file mode 100644 index b639a65..0000000 --- a/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -# Gitignore settings for ESPHome -# This is an example and may include too much for your use-case. -# You can modify this file to suit your needs. -/.esphome/ -/secrets.yaml -*.py[ocd] diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json deleted file mode 100644 index 5239be6..0000000 --- a/.vscode/c_cpp_properties.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "configurations": [ - { - "name": "Linux", - "includePath": [ - "${workspaceFolder}/**", - "${workspaceFolder}/../esphome/" - ], - "defines": ["USE_RP2040"], - "compilerPath": "/usr/bin/gcc", - "cStandard": "c11", - "cppStandard": "gnu++14", - "intelliSenseMode": "linux-gcc-x64" - } - ], - "version": 4 -} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 7a62736..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Pico Debug (Cortex-Debug)", - "cwd": "${workspaceRoot}", - "executable": "${workspaceRoot}/.esphome/build/enviro-weather/.pioenvs/enviro-weather/firmware.elf", - "request": "launch", - "type": "cortex-debug", - "servertype": "openocd", - "device": "RP2040", - "runToEntryPoint": "main", - "configFiles": [ - "interface/cmsis-dap.cfg", - "target/rp2040.cfg" - ], - "openOCDLaunchCommands": [ - "adapter speed 5000" - ], - "searchDir": ["/opt/openocd-rp2040/share/openocd/scripts"], - "svdFile": "/workspaces/rp2040/pico-sdk/src/rp2040/hardware_regs/rp2040.svd", - "gdbPath": "gdb-multiarch" - }, - { - "name": "Pico Debug (Cortex-Debug with external OpenOCD)", - "cwd": "${workspaceRoot}", - "executable": "${workspaceRoot}/.esphome/build/enviro-weather/.pioenvs/enviro-weather/firmware.elf", - "request": "launch", - "type": "cortex-debug", - "servertype": "external", - "gdbTarget": "localhost:3333", - "device": "RP2040", - "runToEntryPoint": "main", - "svdFile": "/workspaces/rp2040/pico-sdk/src/rp2040/hardware_regs/rp2040.svd", - "showDevDebugOutput": "raw" - }, - ] -} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index a3b08b1..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "search.exclude": { - "**/node_modules": true, - "**/bower_components": true, - "**/*.code-search": true, - ".esphome": true, - }, -} \ No newline at end of file diff --git a/esphome/components/pcf85063/pcf85063.cpp b/esphome/components/pcf85063/pcf85063.cpp index 102f329..7abb243 100644 --- a/esphome/components/pcf85063/pcf85063.cpp +++ b/esphome/components/pcf85063/pcf85063.cpp @@ -135,13 +135,6 @@ bool PCF85063Component::clear_timer_flag() { return true; } -bool PCF85063Component::stop_timer() { - PCF85063_READ_REG(0x11, 1); - this->pcf85063_.reg.timer_enable = false; - PCF85063_WRITE_REG(0x11, 1); - return true; -} - bool PCF85063Component::clear_alarm_flag() { PCF85063_READ_REG(0x01, 1); this->pcf85063_.reg.alarm_flag = 0; diff --git a/esphome/components/pcf85063/pcf85063.h b/esphome/components/pcf85063/pcf85063.h index c5e3272..3643764 100644 --- a/esphome/components/pcf85063/pcf85063.h +++ b/esphome/components/pcf85063/pcf85063.h @@ -34,7 +34,6 @@ class PCF85063Component : public time::RealTimeClock, public i2c::I2CDevice { bool write_timer_interval(uint16_t interval); bool clear_timer_flag(); bool clear_alarm_flag(); - bool stop_timer(); bool write_clockout_frequency(uint8_t freq); void set_timer_interrupt_enable_(bool state); void set_timer_interrupt_mode_(PCF85063ATimerInterruptMode_t mode); diff --git a/openshell-components.code-workspace b/openshell-components.code-workspace deleted file mode 100644 index 808e0f9..0000000 --- a/openshell-components.code-workspace +++ /dev/null @@ -1,27 +0,0 @@ -{ - "folders": [ - { - "path": "." - }, - { - "path": "../rp2040" - }, - { - "path": "../esphome" - } - ], - "settings": { - "c-cpp-flylint.flexelint.enable": false, - "c-cpp-flylint.lizard.enable": false, - "c-cpp-flylint.flawfinder.enable": false, - "files.associations": { - "*.tmpl": "jinja", - "*.txt": "plaintext", - "memory": "cpp", - "istream": "cpp", - "ostream": "cpp" - }, - "cortex-debug.openocdPath": "/opt/openocd-rp2040/bin/openocd", - //"cortex-debug.gdbPath": "/workspaces/rp2040/system/arm-none-eabi/bin/arm-none-eabi-gdb", - } -} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index c8d0acb..0000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ --e ../esphome \ No newline at end of file