Comments (8)
Apakah itu menggunakan library EEPROM for avr
from lgt8fx.
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.
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.
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.
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.
from lgt8fx.
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.
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)
- java.lang.NullPointerException when upload program to LGT8f328 IC HOT 5
- issues with timer3 in lgt8f328p HOT 42
- PetitFS and initialization problem (SPI)
- StLink v2 HOT 1
- NO SSL for json file HOT 7
- EEPROM library on logging principle (from STM32) HOT 10
- Problems with burning the bootloader HOT 14
- Cannot compile HOT 6
- [SOLUTION] Compilation error
- The WDT issue. HOT 11
- lgt8fx - Boards Manager Menu error / quirk - for Internal 16MHz / 32MHz HOT 27
- Lgt8fx - ADC analogRead() is wrong - it only returns back 10bit - need to load manually ADCH + ADCL to get 12bit value HOT 2
- FastIO will not accept defined constants HOT 3
- Internal clock speeds less than 32MHz no longer available since version 2.0.3. HOT 3
- voltage and current on pins when MCU in LowPower.deepSleep2 HOT 1
- standbyExternalInterrupt example does not consistently work HOT 1
- I am using emonlib with arduino then it is working HOT 2
- LGT8F328P program size HOT 6
- WDT clock source problem HOT 6
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 lgt8fx.