Giter VIP home page Giter VIP logo

Comments (7)

madhephaestus avatar madhephaestus commented on August 22, 2024

using #ifdef's like this:
https://github.com/madhephaestus/ESP32AnalogRead/blob/master/ESP32AnalogRead.cpp#L132
is how to make a single code base cross-compile for different ESP32 versions.

from esp32encoder.

madhephaestus avatar madhephaestus commented on August 22, 2024

If you send a PR with that #ifdef gaurds then i can merge that in :)

from esp32encoder.

systemofapwne avatar systemofapwne commented on August 22, 2024

I added the changes to my previous PR regarding issues on the ESP32-S2 platform and renamed the PR to "ESP32-S2 platform support".

Feel free to pull.

from esp32encoder.

brianmichalk1 avatar brianmichalk1 commented on August 22, 2024

I think I am having a similar problem:

.pio/libdeps/esp32-s2-saola-1a/ESP32Encoder/src/ESP32Encoder.cpp: In function 'void esp32encoder_pcnt_intr_handler(void*)':
.pio/libdeps/esp32-s2-saola-1a/ESP32Encoder/src/ESP32Encoder.cpp:68:65: error: 'volatile union pcnt_un_status_reg_t' has no member named 'thres0_lat'
    } else if(esp32enc->always_interrupt && (PCNT.status_unit[i].thres0_lat || PCNT.status_unit[i].thres1_lat)) {

platformio.ini:


[env:esp32-s2-saola-1a]
platform = espressif32
board = esp32-s2-saola-1
framework = arduino
lib_deps = 
	mcxiaoke/ESPDateTime
	madhephaestus/ESP32Encoder
	hieromon/AutoConnect
	adafruit/Adafruit SleepyDog Library
	EEPROM
build_flags = 
	${common_env_data.build_flags}
Dependency Graph
|-- <ESPDateTime> 1.0.4
|-- <ESP32Encoder> 0.9.0
|-- <AutoConnect> 1.3.4
|   |-- <PageBuilder> 1.5.3
|   |   |-- <FS> 2.0.0
|   |   |-- <LittleFS> 2.0.0
|   |   |   |-- <FS> 2.0.0
|   |   |-- <SPIFFS> 2.0.0
|   |   |   |-- <FS> 2.0.0
|   |   |-- <WebServer> 2.0.0
|   |   |   |-- <WiFi> 2.0.0
|   |   |   |-- <FS> 2.0.0
|   |   |-- <WiFi> 2.0.0
|   |-- <ArduinoJson> 6.19.4
|   |-- <SD> 2.0.0
|   |   |-- <FS> 2.0.0
|   |   |-- <SPI> 2.0.0
|   |-- <SPI> 2.0.0
|   |-- <WiFi> 2.0.0
|   |-- <FS> 2.0.0
|   |-- <LittleFS> 2.0.0
|   |   |-- <FS> 2.0.0
|   |-- <SPIFFS> 2.0.0
|   |   |-- <FS> 2.0.0
|   |-- <WebServer> 2.0.0
|   |   |-- <WiFi> 2.0.0
|   |   |-- <FS> 2.0.0
|   |-- <EEPROM> 2.0.0
|   |-- <Preferences> 2.0.0
|   |-- <Update> 2.0.0
|   |-- <Ticker> 2.0.0
|   |-- <HTTPClient> 2.0.0
|   |   |-- <WiFi> 2.0.0
|   |   |-- <WiFiClientSecure> 2.0.0
|   |   |   |-- <WiFi> 2.0.0
|   |-- <HTTPUpdate> 2.0.0
|   |   |-- <HTTPClient> 2.0.0
|   |   |   |-- <WiFi> 2.0.0
|   |   |   |-- <WiFiClientSecure> 2.0.0
|   |   |   |   |-- <WiFi> 2.0.0
|   |   |-- <Update> 2.0.0
|   |   |-- <WiFi> 2.0.0
|   |-- <DNSServer> 2.0.0
|   |   |-- <WiFi> 2.0.0
|-- <Adafruit SleepyDog Library> 1.6.0
|-- <EEPROM> 2.0.0
|-- <WebServer> 2.0.0
|   |-- <WiFi> 2.0.0
|   |-- <FS> 2.0.0
|-- <WiFi> 2.0.0

from esp32encoder.

Sp-Link avatar Sp-Link commented on August 22, 2024

I am having a same problem, which was solved after modifying the code. The chip used is esp-s3.It may be wrong, but the example running.How should I send the code?

from esp32encoder.

systemofapwne avatar systemofapwne commented on August 22, 2024

I am having a same problem, which was solved after modifying the code. The chip used is esp-s3.It may be wrong, but the example running.How should I send the code?

Just via a standard Pull Request (PR): Fork the repo, clone it, change the code, push the changes and apply for a PR.

from esp32encoder.

madhephaestus avatar madhephaestus commented on August 22, 2024

this should be resolved now

from esp32encoder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.