-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Softwarewire #82
base: master
Are you sure you want to change the base?
Softwarewire #82
Conversation
TODO: Update documentation. |
Hi, unfortunately I am getting a compilation error: However I am pretty sure that I cannot properly test it this way because I do not know how to connect the sensor directly to the raspberry and see no way to see the print output - I am using tinytx3 nodes - originally created by Nathan Chantrell and I need a RFM69CW module which sends the sensor data to a receiver which is connected to a raspberry pi. This way I can read the sensor data with a raspberry pi. I got a working Sketch for HTU21D sensor which I will change so that it sends the data of a BME280. When I succeed to make it send the data I can post the working sketch. At the moment my sketch gives me the following error: which surprises me since Wire.h should be in the path. However I am also not sure that it is right that the sketch is asking for Wire.h |
Removing old #include <Wire.h> include.
@daniu-de, what compiler/settings are you using to compile this? The first error is because the !Serial is not supported for TinyDebugSerial. You can probably just delete line 42. #include <Wire.h> is old code from the original version 1.0, I have removed it and committed. I was not able to compile it yet though. I will compile it when I am hope tonight (I don't think it should cause any issues). |
Hi, The #include Wire.h is also in BMEI2C.cpp and by commenting out this line I get: /root/sketchbook/libraries/BME280/BME280I2C.cpp: In member function ‘virtual bool BME280I2C::WriteRegister(uint8_t, uint8_t)’: |
…into softwarewire Merging changes.
I have committed some changes that should fix the wire includes. |
Hi, (that is your sketch) mine shows the follwing error in this line: Error: |
Another issue I am having with my own sketch is: Is it possible that BME280 like that uses up a bit much memory? |
I was able to compile the example for Attiny84 after commenting out the Serial calls. Attiny does not support the "Serial" library, so those calls will have to be removed.
Is because you need to modify the "Config.h" file to |
Related issue # and issue behavior
A request was made to add SoftwareWire to the library. #79
Description of changes/fixes
Added BME280I2CSoftwareWire.h/cpp. Added Config.h
@mention a person to review
@daniu-de, please review the functionality of the new additions.
Steps to test
Uncomment line 32 in Config.h: #define USING_SOFTWARE_WIRE 1
Build and run the BME_280_I2C_SoftwareWire_Test.ino sketch on a live setup.
Any outstanding TODOs or known issues
Needs testing.