Comments (5)
@stickbreaker
the usual steps would be to put the platform path into platformio.ini of the project.
platform = https://github.com/stickbreaker/arduino-esp32.git
But unfortunately that fails with some weird error messages. Maybe because your repo is a fork. Don't really know why.
@glucee
2 possible solutions:
a) just replace
C:\Users\beegee\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-i2c.c
C:\Users\beegee\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-i2c.h
C:\Users\beegee\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-log.h
C:\Users\beegee\.platformio\packages\framework-arduinoespressif32\libraries\Wire\src\Wire.cpp
C:\Users\beegee\.platformio\packages\framework-arduinoespressif32\libraries\Wire\src\Wire.h
with the same files from stickbreakers repo.
b) use git to clone stickbreakers repo
rename
C:\Users\beegee\.platformio\packages\framework-arduinoespressif32
to
C:\Users\beegee\.platformio\packages\framework-arduinoespressif32.org
clone stickbreakers repo into an empty
C:\Users\beegee\.platformio\packages\framework-arduinoespressif32
then clean your project, recompile and you are using this repo.
from arduino-esp32.
@Eohan, don't do that. You might mess up other things. Just grab the following files from stickbreakers repo
\libraries\Wire\scr\Wire.h
\libraries\Wire\scr\Wire.cpp
\cores\esp32\esp32-hal-i2c.h
\cores\esp32\esp32-hal-i2c.c
\cores\esp32\esp32-hal-log.h
and overwrite the according files in your framework-arduinoespressif32
folder.
from arduino-esp32.
I have no experience with platformio. This is a fork of arduino-esp32. So, whatever procedures are used to use espressif/arduino-esp32 will work with this fork.
If you use the Wire()
library there should not be any differences.
Chuck.
from arduino-esp32.
@beegee-tokyo Thanks for the help! 👍
Chuck.
from arduino-esp32.
Some files that are in the standard repo are not present in stickbreakers' repo. So another solution is to copy stickbreakers files and overwrite all the files in C:\Users\beegee.platformio\packages\framework-arduinoespressif32 folder. This keeps all the extra files as is.
from arduino-esp32.
Related Issues (20)
- Continue with this forks changes or main? HOT 3
- Compilation error with recent changes HOT 7
- Grosstimeout dead? HOT 7
- ETH and I2C HOT 11
- i2c error causing panic HOT 2
- Random Timeouts HOT 16
- Understanding merge with Main, not an issue. HOT 4
- Compilation Warning with 2 of July version HOT 2
- I2C with Adafruit Si7021 humidity/temp sensor HOT 4
- i2c communications on ESP32 HOT 1
- Question: set and read SDA/SCL HOT 2
- pinging @telliottosceola
- I2C not working with RTClib using DS3231 HOT 2
- Question?? HOT 4
- Bus Invalid State sda=1, scl=0 HOT 11
- Question about using RTOS and I2C HOT 2
- Question? HOT 10
- How to implement ?
- I2C Progress?
- ESP32-S2 Support
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 arduino-esp32.