Giter Site home page Giter Site logo

E2PROM about lgt8fx HOT 8 CLOSED

imroend avatar imroend commented on May 24, 2024
E2PROM

from lgt8fx.

Comments (8)

imroend avatar imroend commented on May 24, 2024 1

Apakah itu menggunakan library EEPROM for avr

from lgt8fx.

wollewald avatar wollewald commented on May 24, 2024 1

For the benefit of other readers, here's the translation:

Thanks, the problem was solved by deleting the EEPROM library in the user library folder / in my documents, maybe the library was read in that folder before

from lgt8fx.

wollewald avatar wollewald commented on May 24, 2024

It's like on an AVR based Arduino. Try this example:

#include <EEPROM.h>

struct myStruct{
    int a;
    float b;
    char c;
};

void setup(){
    Serial.begin(9600);
    myStruct myWriteStruct = {42, 42.42, 'c'};
    unsigned int address = 0;
    EEPROM.put(address, myWriteStruct);

    myStruct myReadStruct = {};
    EEPROM.get(address, myReadStruct);
    Serial.println(myReadStruct.a);
    Serial.println(myReadStruct.b);
    Serial.println(myReadStruct.c);
}

void loop(){}

It worked on my LQFP32 MiniEVB

from lgt8fx.

wollewald avatar wollewald commented on May 24, 2024

If deepl is correct then this is Indonesian and means: "Does it use the EEPROM library for avr?"

The answer is: You can use it like the AVR EEPROM library but it is different "behind the scenes".

Or in Indonesian:

Jawabannya adalah: Anda dapat menggunakannya seperti perpustakaan EEPROM AVR, tetapi berbeda "di balik layar".

I hope this makes sense!

from lgt8fx.

imroend avatar imroend commented on May 24, 2024

Saya mendapati niliai kesalahan pada type data int
16937 //int data
42.42 // float data
C // char data

Jadi untuk int salah , lainnya benar

from lgt8fx.

imroend avatar imroend commented on May 24, 2024

Uploading 16957596641147092191001219699219.jpg


from lgt8fx.

wollewald avatar wollewald commented on May 24, 2024

Translation is:

I got an error value on the int data type
16937 //int data
42.42 // float data
C // char data

So for int is wrong, others are right

Don't know what's wrong on your side. I get the correct values. And I can't see the image you tried to upload.
Tidak tahu apa yang salah di pihak Anda. Saya mendapatkan nilai yang benar. Dan saya tidak bisa melihat gambar yang Anda coba unggah.

from lgt8fx.

imroend avatar imroend commented on May 24, 2024

Terimakasih , permasalah terselesaikan dengan menghapus library EEPROM di folder user library/ di my document, mungkin library terbaca di folder tersebut sebelumnya

from lgt8fx.

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.