Ardduino compiling isues... - The Planted Tank Forum
 
LinkBack Thread Tools Display Modes
post #1 of 4 (permalink) Old 09-04-2017, 07:05 PM Thread Starter
Planted Member
 
Lingwendil's Avatar
 
PTrader: (0/0%)
Join Date: Nov 2012
Location: Oakley, Ca
Posts: 267
Ardduino compiling isues...

Any arduino folks know how to give me a hand on getting o2's blynk code to compile correctly?

I'm using this code-

https://www.plantedtank.net/forums/20...l#post10114706


and getting the following errors. I have all the correct libraries-

Quote:
Arduino: 1.8.3 (Windows 7), TD: 1.38, Board: "WeMos D1 R2 & mini, 80 MHz, 921600, 4M (3M SPIFFS)"

C:\Users\Deela\Documents\Arduino\libraries\Adafrui t_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver .cpp: In member function 'void Adafruit_PWMServoDriver::begin()':

C:\Users\Deela\Documents\Arduino\libraries\Adafrui t_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver .cpp:25:15: error: 'Wire1' was not declared in this scope

#define WIRE Wire1

^

C:\Users\Deela\Documents\Arduino\libraries\Adafrui t_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver .cpp:36:2: note: in expansion of macro 'WIRE'

WIRE.begin();

^

C:\Users\Deela\Documents\Arduino\libraries\Adafrui t_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver .cpp: In member function 'void Adafruit_PWMServoDriver::setPWM(uint8_t, uint16_t, uint16_t)':

C:\Users\Deela\Documents\Arduino\libraries\Adafrui t_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver .cpp:25:15: error: 'Wire1' was not declared in this scope

#define WIRE Wire1

^

C:\Users\Deela\Documents\Arduino\libraries\Adafrui t_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver .cpp:75:3: note: in expansion of macro 'WIRE'

WIRE.beginTransmission(_i2caddr);

^

C:\Users\Deela\Documents\Arduino\libraries\Adafrui t_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver .cpp: In member function 'uint8_t Adafruit_PWMServoDriver::read8(uint8_t)':

C:\Users\Deela\Documents\Arduino\libraries\Adafrui t_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver .cpp:25:15: error: 'Wire1' was not declared in this scope

#define WIRE Wire1

^

C:\Users\Deela\Documents\Arduino\libraries\Adafrui t_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver .cpp:120:3: note: in expansion of macro 'WIRE'

WIRE.beginTransmission(_i2caddr);

^

C:\Users\Deela\Documents\Arduino\libraries\Adafrui t_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver .cpp: In member function 'void Adafruit_PWMServoDriver::write8(uint8_t, uint8_t)':

C:\Users\Deela\Documents\Arduino\libraries\Adafrui t_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver .cpp:25:15: error: 'Wire1' was not declared in this scope

#define WIRE Wire1

^

C:\Users\Deela\Documents\Arduino\libraries\Adafrui t_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver .cpp:129:3: note: in expansion of macro 'WIRE'

WIRE.beginTransmission(_i2caddr);

^

exit status 1
Error compiling for board WeMos D1 R2 & mini.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Lingwendil is offline  
Sponsored Links
Advertisement
 
post #2 of 4 (permalink) Old 09-04-2017, 09:58 PM
Planted Member
 
mrjbacon's Avatar
 
PTrader: (0/0%)
Join Date: May 2017
Location: Ohio
Posts: 204
You may need to use a slightly older compiler. I know that has been an issue with a lot of code posted online with the newer versions of the Arduino compiler

I have MTS
mrjbacon is offline  
post #3 of 4 (permalink) Old 09-05-2017, 07:21 PM Thread Starter
Planted Member
 
Lingwendil's Avatar
 
PTrader: (0/0%)
Join Date: Nov 2012
Location: Oakley, Ca
Posts: 267
Got it going, had to remove a couple lines of code in the servo library.

But, of course, the thing doesn't work. LEDs will not dim, and o2surplus no longer responds to PMs or threads, so no support from him
Lingwendil is offline  
 
post #4 of 4 (permalink) Old 09-05-2017, 07:32 PM
Planted Member
 
MrMan's Avatar
 
PTrader: (0/0%)
Join Date: Dec 2014
Location: Vancouver
Posts: 224
Quote:
Originally Posted by Lingwendil View Post
Got it going, had to remove a couple lines of code in the servo library.

But, of course, the thing doesn't work. LEDs will not dim, and o2surplus no longer responds to PMs or threads, so no support from him
Have you confirmed the hardware is all working correctly? IE make a simple program that just ramps each channel up/down one by one and that's it.

I've looked over his code but havn't used Blynk too much yet. The serial monitor should report the status as it goes through the setup and app should notify you if it's connected, is that all working?


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
MrMan is offline  
Reply

Tags
None

Quick Reply
Message:
Options

Register Now



In order to be able to post messages on the The Planted Tank Forum forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:
OR

Log-in










Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode



Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

 
For the best viewing experience please update your browser to Google Chrome