RGB Backlight and Rotary encoder
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: RGB Backlight and Rotary encoder
It builds OK in 1.6.10, which is what I have installed. I'll see if I can find out what has changed in 1.6.12.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: RGB Backlight and Rotary encoder
Must be some compiler option that is different.
"requestEvent" is a forward reference, the IDE used to handle these.
There is a function "requestEvent()" at the end of the file, try moving this function to before the setup() function. That stops it being a forward reference.
Mike.
"requestEvent" is a forward reference, the IDE used to handle these.
There is a function "requestEvent()" at the end of the file, try moving this function to before the setup() function. That stops it being a forward reference.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: RGB Backlight and Rotary encoder
I did, same problem occured and the line "Wire.onRequest(requestEvent); // register event" was highlighted.
2x - Turnigy 9X with 9xtreme board;
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: RGB Backlight and Rotary encoder
I've downloaded 1.6.12 IDE, and I'll install that and see what is happening.
It may be a day or two as I'm tied up with life things at the moment.
Mike.
It may be a day or two as I'm tied up with life things at the moment.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: RGB Backlight and Rotary encoder
In the meantime, try making sure this code is in the file before setup().
Mike.
Code: Select all
void requestEvent( void ) ;
// function that executes whenever data is requested by master
// this function is registered as an event, see setup()
void requestEvent()
{
Wire.write( EncoderData, 2 ) ; // respond with Data 2 bytes
}
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: RGB Backlight and Rotary encoder
Mike, the same error happens.
I see several setup()
what i did was replacing the final part of the code with that code you wrote above.
I see several setup()
what i did was replacing the final part of the code with that code you wrote above.
2x - Turnigy 9X with 9xtreme board;
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: RGB Backlight and Rotary encoder
I've just found time to try 1.6.12 and it compiles fine, even with the original source file.
Please try compiling with the line:
Wire.onRequest(requestEvent); // register event
commented out (put "//" at the start of the line), and see if that compiles.
Mike.
Please try compiling with the line:
Wire.onRequest(requestEvent); // register event
commented out (put "//" at the start of the line), and see if that compiles.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: RGB Backlight and Rotary encoder
The .ino file is in a folder with the same name on the desktop, should it be in the libraries folder?
2x - Turnigy 9X with 9xtreme board;
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: RGB Backlight and Rotary encoder
I meant change:
Wire.onRequest(requestEvent); // register event
to:
//Wire.onRequest(requestEvent); // register event
Mike.
Wire.onRequest(requestEvent); // register event
to:
//Wire.onRequest(requestEvent); // register event
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: RGB Backlight and Rotary encoder
option 2: my pc is cursed.
2x - Turnigy 9X with 9xtreme board;
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
Re: RGB Backlight and Rotary encoder
Any guess why wont this file compile on my laptop?
I have windows 10 x64. Pretty anoying this subject?
I have windows 10 x64. Pretty anoying this subject?
2x - Turnigy 9X with 9xtreme board;
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: RGB Backlight and Rotary encoder
I think you may have copied the function requestEvent() instead of moving it.
Please try compiling the attached .ino file.
I'm also using Win 10 64-bit.
Mike.
Please try compiling the attached .ino file.
I'm also using Win 10 64-bit.
Mike.
- Attachments
-
- I2Cencoder.zip
- (674 Bytes) Downloaded 215 times
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
octavios
I'm working right now. I'll let you know as soon as I can.
2x - Turnigy 9X with 9xtreme board;
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
Re: RGB Backlight and Rotary encoder
Mike everything went fine, thx for your time. now i can go to next step.
2x - Turnigy 9X with 9xtreme board;
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.