Comments (15)
Thanks for reporting the issue.
Have no computer nearby (phone only) to investigate.
Will get back as soon as I am operational again.
from fram_i2c.
I think i found the solution myself, a float can't be written to an u_int32_t it has to be writtenand reading as an object.
it know looks like it is working.
from fram_i2c.
Yes floats are not directly supported, writeObject() is the way. As float is a basic datatype it might be usefull to have a writeFloat(address, float) to simplify the usage. And a read too of course.
from fram_i2c.
That could be nice, but with the use of writeobject and readbject it does the trick also.
from fram_i2c.
@ageurtse
Working on a 0.4.3 release with writeFloat() and readFloat() support in the develop branch.
I encounter problems with build-ci which are under investigation so I will not merge soon.
But you are welcome to give the code a test drive (unit tests are OK).
from fram_i2c.
would love to try it out from within esphome, but don't know how to load the develop branche so i could test it.
after i found the solution for that i try and report back.
esphome is based on platformio
currently i add i like this
tryed instate of 0.4.2 develop
libraries:
- "Wire"
- "robtillaart/FRAM_I2C@^0.4.2"
from fram_i2c.
https://github.com/RobTillaart/FRAM_I2C/tree/develop
Green code button ==> local tab ==> download zip
from fram_i2c.
The develop branch is not located on platformio so think it will be beyond trivial.
(not familiar with esphome ==> need to plan some R&D time...
from fram_i2c.
The develop branch is not located on platformio so think it will be beyond trivial. (not familiar with esphome ==> need to plan some R&D time...
if you are into home automation, you should realy look at esphome and homeassistant
from fram_i2c.
managed to install the develop tree, reading and writing a float looks good to me.
only thing for me, a float is 32 bit, why do you check for the size ?
this is because if i write a value to the second position it is in my case on the 5th byte.
from fram_i2c.
I use the sizeof() to minimize the "magic numbers"
The call sizeof(fliat) is self documenting so it provides the reader of the code the meaning of the parameter.
from fram_i2c.
Realy would like to try but don’t now how to select the development enviroment from within esphome (platformio)
from fram_i2c.
I managed to load the library and it all run’s fine.
so i see no need to not push it to the master
from fram_i2c.
Thanks for testing, will merge tomorrow,
Still I need to have my build-CI running 100% as that saves me a lot of time .
from fram_i2c.
- added writeDouble() and readDouble() to the develop branch. This is for the boards that support 8 byte doubles.
- created a PR
- escalated the bug in the build-ci to the "build team"
from fram_i2c.
Related Issues (20)
- memory addressing for MB85RC1MT HOT 47
- second I2C port on ESP32, working with BM280E not with FRAM HOT 13
- Ringbuffer HOT 18
- Issues with FRAM's that use Page Addressing HOT 15
- [Wish] - read back logging HOT 37
- esphome port or I2C/GPIO abstraction HOT 16
- [Question] Begin after deepsleep produces an error HOT 5
- MB85RC04 FRAM9 HOT 27
- Support for Additional FRAM Devices and Addressing Modes HOT 2
- getMetadata() not working on MB85RC64V HOT 7
- FRAM32 and read / write object HOT 7
- Tested device: FM24C256-G (Ramtron) Works HOT 5
- Connection to FRAM stopped working with version 0.7.0 HOT 4
- FM24V10 HOT 10
- Bug with reading HOT 7
- Support of different FRAM sizes HOT 5
- FRAM size error HOT 9
- Fram address question HOT 4
- performance sketch problem HOT 1
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 fram_i2c.