Comments (7)
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.
If you send a PR with that #ifdef gaurds then i can merge that in :)
from esp32encoder.
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.
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.
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.
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.
this should be resolved now
from esp32encoder.
Related Issues (20)
- Trouble with RPM calculation HOT 2
- cannot even compile example for regular esp32 dev board HOT 7
- Encoder limit? ESP32S3 Bootloop Issue "Too Many Encoders!" HOT 4
- wrong counting with fast encoder HOT 2
- Liberary doesn't work when generating a PWM signal (when pins 15 and 16 split the PWM and encoder) HOT 6
- Support for MCP23017 GPIO expander
- compatibility with ESP32 core V3 HOT 2
- Not compiling for ESP32-S2 HOT 3
- Compile error 0.10.0 and 0.10.1 HOT 6
- Encoder Library with PCNT as Frequency Counter
- Function working and direction HOT 6
- Encoder not working in IO2, IO4. HOT 3
- Compile fails with soc.h not found HOT 5
- Not working with tasks HOT 1
- Compiling error HOT 12
- Attach Single edge problem HOT 1
- ESP32-C3 compile fail
- setCount after setup() HOT 2
- Encoder get difference from last read HOT 1
- Definition of NONE confliccts with other libraries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32encoder.