[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 195: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 196: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
Plum Geek Forum The Plum Geek forum has been set to read only and moved to https://forum.lowvoltagelabs.com/ 2017-07-26T01:02:41 http://forum.plumgeek.com/feed.php?f=13&t=899 2017-07-26T01:02:41 2017-07-26T01:02:41 http://forum.plumgeek.com/viewtopic.php?t=899&p=7062#p7062 <![CDATA[Re: New Wink - Base Sketch Error]]>
That does sound strange. I've sent you an email - can you reply to that email and include a zipped copy of the sketch folder (the folder including the sketch and supporting files)? I'll have a look here and see if I can get to the bottom of it. It's been a while since I looked at that code, but the function simpleLightLevelLeft() doesn't sound familiar to me. Let me know and we'll go from there. Reading the light levels is fairly simple code so if there is a problem with the function I think we can probably work around it easily enough. Thanks for reporting the bug.

-Kevin

Statistics: Posted by Kevin — Wed Jul 26, 2017 1:02 am


]]>
2017-07-20T14:09:24 2017-07-20T14:09:24 http://forum.plumgeek.com/viewtopic.php?t=899&p=7031#p7031 <![CDATA[Re: New Wink - Base Sketch Error]]>
I got exactly the same errors that ddobrien have. I receive the new Wink last weekend and tried two days, but the Base Sketch keep giving those errors.

/home/acp12cw/Arduino/Wink_BaseSketch_Rev01_03/WinkHardware.ino: In function 'simpleLightLevelLeft()':
/home/acp12cw/Arduino/Wink_BaseSketch_Rev01_03/WinkHardware.ino:198:19: warning: iteration 5 invokes undefined behavior [-Waggressive-loop-optimizations]
if(eyesColor[x]>0){
^
/home/acp12cw/Arduino/Wink_BaseSketch_Rev01_03/WinkHardware.ino:197:3: note: containing loop
for(x=1;x<=6;x++){
^
I have try three computers Msc and Linux system, followed all the steps and the steps in above post, copied WinkHardware.ino and WinkHardware.h from you other zip file etc, but the error always there. Could you please check the Wink_Base_Sketch_Rev01_03 on the website and see if it got some problem? Or if ddobrien found a way to solve it?

Thanks in advance,
Chenhao

Statistics: Posted by chenhao — Thu Jul 20, 2017 2:09 pm


]]>
2016-12-31T02:58:25 2016-12-31T02:58:25 http://forum.plumgeek.com/viewtopic.php?t=899&p=1685#p1685 <![CDATA[Re: New Wink - Base Sketch Error]]>
What version Arduino IDE are you running? Sometimes Arduino updates the IDE and things unexpectedly break. That's never really happened with the code for our units but I'd be curious to rule that out.

I'll follow up in email and maybe we can exchange some screen shots.

Strange issue. I'll look forward to getting to the bottom of it.

-Kevin

Statistics: Posted by Kevin — Sat Dec 31, 2016 2:58 am


]]>
2016-12-30T16:15:21 2016-12-30T16:15:21 http://forum.plumgeek.com/viewtopic.php?t=899&p=1682#p1682 <![CDATA[Re: New Wink - Base Sketch Error]]> Statistics: Posted by ddobrien — Fri Dec 30, 2016 4:15 pm


]]>
2016-12-30T05:57:41 2016-12-30T05:57:41 http://forum.plumgeek.com/viewtopic.php?t=899&p=1681#p1681 <![CDATA[Re: New Wink - Base Sketch Error]]>
Then scroll down to the section headed Install Ringo Software Libraries and make sure you followed those precisely in the way and order specified there. A lot of people get these wrong so get errors trying first code so dont despair.

Statistics: Posted by sil — Fri Dec 30, 2016 5:57 am


]]>
2016-12-30T05:45:57 2016-12-30T05:45:57 http://forum.plumgeek.com/viewtopic.php?t=899&p=1680#p1680 <![CDATA[Re: New Wink - Base Sketch Error]]> Statistics: Posted by sil — Fri Dec 30, 2016 5:45 am


]]>
2016-12-29T06:15:31 2016-12-29T06:15:31 http://forum.plumgeek.com/viewtopic.php?t=899&p=1679#p1679 <![CDATA[Re: New Wink - Base Sketch Error]]>
/*

Wink Robot
Wink_BaseSketch_Rev01_03
Version 1.3 01/2016

This is a basic sketch that can be used as a starting point
for various functionality of the Wink robot.

This code was written by Kevin King and
Dustin Soodak for Plum Geek LLC.
Portions from other open source projects where noted.
This code is licensed under:
Creative Commons Attribution-ShareAlike 2.0 Generic (CC BY-SA 2.0)
https://creativecommons.org/licenses/by-sa/2.0/
Visit http://www.plumgeek.com for Wink information.
Visit http://www.arduino.cc to learn about the Arduino.

*/

#include "WinkHardware.h" // Leave this line first. Do not edit this line. This causes Arduino
// to include background functions when turning your code into
// machine language Wink can understand.


// Below is the "setup" function. It runs one time as soon as Wink turns on. You can add stuff
// to this function if you want, but hardwareBegin() should always be the first code in the list.

void setup(){
hardwareBegin(); //initialize Wink's brain to work with his circuitry
playStartChirp(); //Play startup chirp and blink eyes

}


// Below is the "loop" function. This is where you'll write most of your code. Whatever is included
// inside the "loop" function will run over and over until Wink runs out of power or you turn him off.

void loop(){

// you can begin writing your own code here





} //closing curly of the “loop()” function


In file included from /Users/deborahobrien/Documents/Arduino/Software from PG/Wink_BaseSketch_Rev01_03/Wink_BaseSketch_Rev01_03.ino:21:0:
sketch/WinkHardware.h:249:20: warning: 'irData' initialized and declared 'extern'
extern byte irData[]={0x00,0xFF,0x00,0x00};
^
/Users/deborahobrien/Documents/Arduino/Software from PG/Wink_BaseSketch_Rev01_03/WinkHardware.ino: In function 'simpleLightLevelRight()':
/Users/deborahobrien/Documents/Arduino/Software from PG/Wink_BaseSketch_Rev01_03/WinkHardware.ino:176:19: warning: iteration 5 invokes undefined behavior [-Waggressive-loop-optimizations]
if(eyesColor[x]>0){
^
/Users/deborahobrien/Documents/Arduino/Software from PG/Wink_BaseSketch_Rev01_03/WinkHardware.ino:175:3: note: containing loop
for(x=1;x<=6;x++){
^
/Users/deborahobrien/Documents/Arduino/Software from PG/Wink_BaseSketch_Rev01_03/WinkHardware.ino: In function 'simpleLightLevelLeft()':
/Users/deborahobrien/Documents/Arduino/Software from PG/Wink_BaseSketch_Rev01_03/WinkHardware.ino:198:19: warning: iteration 5 invokes undefined behavior [-Waggressive-loop-optimizations]
if(eyesColor[x]>0){
^
/Users/deborahobrien/Documents/Arduino/Software from PG/Wink_BaseSketch_Rev01_03/WinkHardware.ino:197:3: note: containing loop
for(x=1;x<=6;x++){
^

Statistics: Posted by ddobrien — Thu Dec 29, 2016 6:15 am


]]>
2016-12-29T03:39:50 2016-12-29T03:39:50 http://forum.plumgeek.com/viewtopic.php?t=899&p=1678#p1678 <![CDATA[Re: New Wink - Base Sketch Error]]>
Sorry for the delay getting back to you. We got overwhelmed going into Christmas.

It looks like it can't see the WinkHardware.ino file.

Inside the Arduino IDE, do you see a set of tabs across the top? One should be named WinkHardware, and WinkHardware.h, and a couple more. If not, then that is the problem. The IDE uses code in these other tabs when compiling. Normally we'd just link to a library for these functions (and prob will in the future) but we wanted to leave them open and easy to edit by users as the product is still fairly new and people are doing interesting things with it.

To get the tabs open, open the sketch from within the Arduino IDE from the File menu. Sometimes double clicking the sketch in Windows Explorer won't trigger Arduino to open the tabs and cause this problem.

I would suggest downloading a fresh new copy of the Base Sketch from our website. Unzip that folder and open it, then try to compile it by clicking the "check mark" button in the upper left corner of the Arduino IDE. If it compiles without errors then you should be good. If you're still getting errors, then we need to do some more investigating. I haven't heard of this happening before if the tabs are open so it should be an easy fix.

Hope that gets you up and running and you can get back to having some fun. :)

Cheers!
-Kevin

Statistics: Posted by Kevin — Thu Dec 29, 2016 3:39 am


]]>
2016-12-29T00:00:31 2016-12-29T00:00:31 http://forum.plumgeek.com/viewtopic.php?t=899&p=1676#p1676 <![CDATA[Re: New Wink - Base Sketch Error]]>
Hope this makes sense.

Statistics: Posted by sil — Thu Dec 29, 2016 12:00 am


]]>
2016-12-28T01:14:18 2016-12-28T01:14:18 http://forum.plumgeek.com/viewtopic.php?t=899&p=1672#p1672 <![CDATA[Re: New Wink - Base Sketch Error]]>
Below is the code (I didn't change anything above the Loop function - I was getting the errors posted above with that section blank). Thanks again. Any help would be appreciated.

/*

Wink Robot
Wink_BaseSketch_Rev01_03
Version 1.3 01/2016

This is a basic sketch that can be used as a starting point
for various functionality of the Wink robot.

This code was written by Kevin King and
Dustin Soodak for Plum Geek LLC.
Portions from other open source projects where noted.
This code is licensed under:
Creative Commons Attribution-ShareAlike 2.0 Generic (CC BY-SA 2.0)
https://creativecommons.org/licenses/by-sa/2.0/
Visit http://www.plumgeek.com for Wink information.
Visit http://www.arduino.cc to learn about the Arduino.

*/

#include "WinkHardware.h" // Leave this line first. Do not edit this line. This causes Arduino
// to include background functions when turning your code into
// machine language Wink can understand.


// Below is the "setup" function. It runs one time as soon as Wink turns on. You can add stuff
// to this function if you want, but hardwareBegin() should always be the first code in the list.

void setup(){
hardwareBegin(); //initialize Wink's brain to work with his circuitry
playStartChirp(); //Play startup chirp and blink eyes

}


// Below is the "loop" function. This is where you'll write most of your code. Whatever is included
// inside the "loop" function will run over and over until Wink runs out of power or you turn him off.

void loop(){
eyesPurple(100); //both eyes purple at 100 brightness
delay(3000); //wait 3 seconds
rightOff(); //turn off right eye (so he "winks")
delay(250); //wait 1/4 second
}

Statistics: Posted by ddobrien — Wed Dec 28, 2016 1:14 am


]]>
2016-12-26T23:29:55 2016-12-26T23:29:55 http://forum.plumgeek.com/viewtopic.php?t=899&p=1671#p1671 <![CDATA[New Wink - Base Sketch Error]]>
When we went into to Base Sketch to try our first lesson (changing the eyes), we tested the verify button and get errors before even adding or changing code. I've tried deleted the Base Sketch folder, redownloading/unzipping it. But I still get the error below. Any help would be very appreciated.

In file included from /Users/deborahobrien/Documents/Arduino/Software from PG/Wink_BaseSketch_Rev01_03/Wink_BaseSketch_Rev01_03.ino:21:0:
sketch/WinkHardware.h:249:20: warning: 'irData' initialized and declared 'extern'
extern byte irData[]={0x00,0xFF,0x00,0x00};
^
/Users/deborahobrien/Documents/Arduino/Software from PG/Wink_BaseSketch_Rev01_03/WinkHardware.ino: In function 'simpleLightLevelRight()':
/Users/deborahobrien/Documents/Arduino/Software from PG/Wink_BaseSketch_Rev01_03/WinkHardware.ino:176:19: warning: iteration 5 invokes undefined behavior [-Waggressive-loop-optimizations]
if(eyesColor[x]>0){
^
/Users/deborahobrien/Documents/Arduino/Software from PG/Wink_BaseSketch_Rev01_03/WinkHardware.ino:175:3: note: containing loop
for(x=1;x<=6;x++){
^
/Users/deborahobrien/Documents/Arduino/Software from PG/Wink_BaseSketch_Rev01_03/WinkHardware.ino: In function 'simpleLightLevelLeft()':
/Users/deborahobrien/Documents/Arduino/Software from PG/Wink_BaseSketch_Rev01_03/WinkHardware.ino:198:19: warning: iteration 5 invokes undefined behavior [-Waggressive-loop-optimizations]
if(eyesColor[x]>0){
^
/Users/deborahobrien/Documents/Arduino/Software from PG/Wink_BaseSketch_Rev01_03/WinkHardware.ino:197:3: note: containing loop
for(x=1;x<=6;x++){
^

Statistics: Posted by ddobrien — Mon Dec 26, 2016 11:29 pm


]]>