Page 1 of 1

G15 EEPROM 'Reserved' address

PostPosted: Sun Apr 30, 2017 9:05 pm
by yuansoon
Hi,

My question might sound stupid, but still i wanna ask, what's the use of this 'Reserved' address of EEPROM in G15 servo? Can i modify to use that address for other purpose? Need a fast reply, thanks.

Re: G15 EEPROM 'Reserved' address

PostPosted: Mon May 01, 2017 12:17 am
by A380
Hi,

You can't even write a value to those reserved registers, it might return "Range" error. I think it's reserved for future extra features use if available.

Re: G15 EEPROM 'Reserved' address

PostPosted: Mon May 01, 2017 12:26 am
by yuansoon
Hi A380,

If i need to have a library for rero line sensor, can i just modify the .c ad .cpp file of g15shield and include it in the arduino? I've changed the definition of its address to what of the line sensor from the datasheet, but after i've included the library to the directory library folder, the function in the .h file i modified are not declared after i include the modified header file, do you know why?

can you take a look at the file i modified?

Re: G15 EEPROM 'Reserved' address

PostPosted: Mon May 01, 2017 10:57 am
by yuansoon
Hi,

Okay, now i know that i'm lacking of 'librabry.properties' file, how do i generate that file so that th modified shield library can be used?

Re: G15 EEPROM 'Reserved' address

PostPosted: Mon May 01, 2017 12:07 pm
by yuansoon
Hi,

Is it possible to just add some functions in the .cpp file? i've added some but at the end it comes out the error 'class Cytron_G15Shield' has no member named 'setDarkLightMode'. (setDarkLightMode is the function i've added to the .cpp of Cytron_G15Shield). How should i overcome this problem?

Re: G15 EEPROM 'Reserved' address

PostPosted: Tue May 02, 2017 1:49 am
by yuansoon
Hi,

I've solved my problem, thanks anyway.

Re: G15 EEPROM 'Reserved' address

PostPosted: Tue May 02, 2017 11:39 am
by A380
Awesome! :o