I am so confused!!!!
this is the error code i have
Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"
Build options changed, rebuilding all
C:\Users\rile1810\AppData\Local\Temp\Temp1_FMRadio (1).zip\FMRadio\FMRadio.ino: In function 'void printStereo()':
C:\Users\rile1810\AppData\Local\Temp\Temp1_FMRadio (1).zip\FMRadio\FMRadio.ino:107:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.print("STEREO",55,2);
^
C:\Users\rile1810\Documents\Arduino\libraries\TEA5767-master\TEA5767N.cpp: In member function 'TEA5767N::transmitData()':
C:\Users\rile1810\Documents\Arduino\libraries\TEA5767-master\TEA5767N.cpp:92:34: warning: iteration 5 invokes undefined behavior [-Waggressive-loop-optimizations]
Wire.write(transmission_data*);*
- ^*
C:\Users\rile1810\Documents\Arduino\libraries\TEA5767-master\TEA5767N.cpp:91:2: note: containing loop - for (int i=0 ; i<6 ; i++) {*
- ^*
C:\Users\rile1810\Documents\Arduino\libraries\TEA5767-master\TEA5767N.cpp: In function 'transmitData.constprop':
C:\Users\rile1810\Documents\Arduino\libraries\TEA5767-master\TEA5767N.cpp:92:34: warning: iteration 5 invokes undefined behavior [-Waggressive-loop-optimizations]
Wire.write(transmission_data*);
_ ^_
C:\Users\rile1810\Documents\Arduino\libraries\TEA5767-master\TEA5767N.cpp:91:2: note: containing loop
_ for (int i=0 ; i<6 ; i++) {_
_ ^_
C:\Users\rile1810\AppData\Local\Temp\ccitifIO.ltrans0.ltrans.o: In functionprintSignalStrength()':*_ <em>*C:\Users\rile1810\AppData\Local\Temp\Temp1_FMRadio (1).zip\FMRadio/FMRadio.ino:117: undefined reference to
signal5'
C:\Users\rile1810\AppData\Local\Temp\Temp1_FMRadio (1).zip\FMRadio/FMRadio.ino:117: undefined reference tosignal5'*</em> <em>*C:\Users\rile1810\AppData\Local\Temp\Temp1_FMRadio (1).zip\FMRadio/FMRadio.ino:120: undefined reference to
signal4'
C:\Users\rile1810\AppData\Local\Temp\Temp1_FMRadio (1).zip\FMRadio/FMRadio.ino:120: undefined reference tosignal4'*</em> <em>*C:\Users\rile1810\AppData\Local\Temp\Temp1_FMRadio (1).zip\FMRadio/FMRadio.ino:124: undefined reference to
signal3'
C:\Users\rile1810\AppData\Local\Temp\Temp1_FMRadio (1).zip\FMRadio/FMRadio.ino:124: undefined reference tosignal3'*</em> <em>*C:\Users\rile1810\AppData\Local\Temp\Temp1_FMRadio (1).zip\FMRadio/FMRadio.ino:128: undefined reference to
signal2'
C:\Users\rile1810\AppData\Local\Temp\Temp1_FMRadio (1).zip\FMRadio/FMRadio.ino:128: undefined reference tosignal2'*</em> <em>*C:\Users\rile1810\AppData\Local\Temp\Temp1_FMRadio (1).zip\FMRadio/FMRadio.ino:132: undefined reference to
signal1'
C:\Users\rile1810\AppData\Local\Temp\Temp1_FMRadio (1).zip\FMRadio/FMRadio.ino:132: undefined reference tosignal1'*</em> _*C:\Users\rile1810\AppData\Local\Temp\ccitifIO.ltrans0.ltrans.o: In function
showSplashScreen':
C:\Users\rile1810\AppData\Local\Temp\Temp1_FMRadio (1).zip\FMRadio/FMRadio.ino:78: undefined reference tosplash'*</em> <em>*C:\Users\rile1810\AppData\Local\Temp\Temp1_FMRadio (1).zip\FMRadio/FMRadio.ino:78: undefined reference to
splash'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
_"Show verbose output during compilation"_
option enabled in File -> Preferences.
this is the code i tried to upload
_ /////////////////////////////////////////////////////////////////_
_ // Arduino FM Radio Project //_
_ // Get the latest version of the code here: //_
_// Arduino FM Radio Project - educ8s.tv - Watch Learn Build //_
_/////////////////////////////////////////////////////////////////_
_#include <TEA5767N.h> //https://github.com/mroger/TEA5767*_
#include <LCD5110_Graph.h> //LCD5110_Graph - Rinky-Dink Electronics
LCD5110 lcd(8,9,10,12,11);
TEA5767N radio = TEA5767N();
extern unsigned char BigNumbers[];
extern unsigned char TinyFont[];
extern uint8_t splash[];
extern uint8_t signal5[];
extern uint8_t signal4[];
extern uint8_t signal3[];
extern uint8_t signal2[];
extern uint8_t signal1[];
int analogPin = 0;
int val = 0;
int frequencyInt = 0;
float frequency = 0;
float previousFrequency = 0;
int signalStrength = 0;
void setup()
{
* radio.setMonoReception();*
* radio.setStereoNoiseCancellingOn();*
* initScreen();*
* showSplashScreen();*
* Serial.begin(9600);*
}
void loop() {
* for(int i;i<30;i++)*
* {*
* val = val + analogRead(analogPin);*
* delay(1);*
* }*
* val = val/30;*
* frequencyInt = map(val, 2, 1014, 8700, 10700); //Analog value to frequency from 87.0 MHz to 107.00 MHz*
* float frequency = frequencyInt/100.0f;*
* if(frequency - previousFrequency >= 0.1f || previousFrequency - frequency >= 0.1f)*
* {*
* lcd.clrScr();*
* radio.selectFrequency(frequency);*
* printSignalStrength();*
* printStereo();*
* printFrequency(frequency);*
* previousFrequency = frequency; *
* }*
* lcd.clrScr();*
* printSignalStrength();*
* printStereo();*
* printFrequency(frequency);*
* delay(50);*
* val = 0; *
}
void initScreen()
{
* lcd.InitLCD();*
* lcd.setFont(BigNumbers);*
* lcd.clrScr();*
}
void showSplashScreen()
{
* lcd.drawBitmap(0, 0, splash, 84, 48);*
* lcd.update(); *
* delay(3000);*
* lcd.clrScr();*
* lcd.update();*
}
void printFrequency(float frequency)
{
* String frequencyString = String(frequency,1);*
* if(frequencyString.length() == 4)*
* {*
* lcd.setFont(BigNumbers);*
* lcd.print(frequencyString,14,12);*
* lcd.update();*
* }*
* else*
* {*
* lcd.setFont(BigNumbers);*
* lcd.print(frequencyString,0,12);*
* lcd.update();*
* }*
}
void printStereo()
{
* boolean isStereo = radio.isStereo();*
* if(isStereo)*
* {*
* lcd.setFont(TinyFont);*
* lcd.print("STEREO",55,2);*
* }*
}
void printSignalStrength()
{
* signalStrength = radio.getSignalLevel();*
* String signalStrenthString = String(signalStrength);*
* if(signalStrength >=15)*
* {*
* lcd.drawBitmap(1, 1, signal5, 17 , 6);*
* }else if(signalStrength >=11 && signalStrength <15)*
* {*
* lcd.drawBitmap(1, 1, signal4, 17 , 6);*
* }*
* else if(signalStrength >=9 && signalStrength <11)*
* {*
* lcd.drawBitmap(1, 1, signal3, 17 , 6);*
* }*
* else if(signalStrength >=7 && signalStrength <9)*
* {*
* lcd.drawBitmap(1, 1, signal2, 17 , 6);*
* }*
* else if(signalStrength <7)*
* {*
* lcd.drawBitmap(1, 1, signal1, 17 , 6);*
* }*
}