M5Watch icon indicating copy to clipboard operation
M5Watch copied to clipboard

'M5BLEinit' was not declared in this scope

Open dmeylman opened this issue 6 years ago • 4 comments

Get this error when compiling...please help...

Arduino: 1.8.8 (Linux), Board: "M5Stick-C, Default, 1500000, None"

/home/ald/Scripts/MicroPython/m5stick/M5Watch-master/M5Watch/M5Watch.ino: In function 'void setup()': M5Watch:63:13: error: 'M5BLEinit' was not declared in this scope M5BLEinit(); ^ M5Watch:64:14: error: 'M5MenuInit' was not declared in this scope M5MenuInit(); ^ /home/ald/Scripts/MicroPython/m5stick/M5Watch-master/M5Watch/M5Watch.ino: In function 'void loop()': M5Watch:107:13: error: 'M5BLEloop' was not declared in this scope M5BLEloop(); ^ exit status 1 'M5BLEinit' was not declared in this scope

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

dmeylman avatar Jan 08 '20 06:01 dmeylman

Hi,

please try to move the project directory up. I think the correct path is '/home/ald/Scripts/MicroPython/m5stick/M5Watch/M 5Watch.ino' instead of '/home/ald/Scripts/MicroPython/m5stick/M5Watch- master/M5Watch/M5Watch.ino'. ---------- Původní e-mail ---------- Od: dmeylman [email protected] Komu: Happy83/M5Watch [email protected] Datum: 8. 1. 2020 7:16:51 Předmět: [Happy83/M5Watch] 'M5BLEinit' was not declared in this scope (#1) " Get this error when compiling...please help...

Arduino: 1.8.8 (Linux), Board: "M5Stick-C, Default, 1500000, None"

/home/ald/Scripts/MicroPython/m5stick/M5Watch-master/M5Watch/M5Watch.ino: In function 'void setup()': M5Watch:63:13: error: 'M5BLEinit' was not declared in this scope M5BLEinit(); ^ M5Watch:64:14: error: 'M5MenuInit' was not declared in this scope M5MenuInit(); ^ /home/ald/Scripts/MicroPython/m5stick/M5Watch-master/M5Watch/M5Watch.ino: In function 'void loop()': M5Watch:107:13: error: 'M5BLEloop' was not declared in this scope M5BLEloop(); ^ exit status 1 'M5BLEinit' was not declared in this scope

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub (https://github.com/Happy83/M5Watch/issues/1?email_source=notifications&email_token=ACEXBLAXUONWJ7JUUMAWKHTQ4VVU5A5CNFSM4KEDMUFKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IEVPFGQ) , or unsubscribe (https://github.com/notifications/unsubscribe-auth/ACEXBLEGMPA2KOWWF6R22RLQ4VVU5ANCNFSM4KEDMUFA) . "

Happy83 avatar Jan 08 '20 07:01 Happy83

Works...next, try to figure out how to set the time...Thanks...

dmeylman avatar Jan 09 '20 01:01 dmeylman

Great,

all settings are possible only over bluetooth (mobile application or ble serial console for pc). For set the time you have to send 14 characters string 'YYYYMMDDHHMMSS'. ( https://github.com/Happy83/M5Watch/blob/master/ library/M5WatchLcd.cpp#L168 )

...or you can add lines: RTC_TimeTypeDef TimeStruct; RTC_DateTypeDef DateStruct; DateStruct.Year = 2020; DateStruct.Month = 1; DateStruct.Date = 9; TimeStruct.Hours = 7; TimeStruct.Minutes = 47; TimeStruct.Seconds = 0; M5.Rtc.SetData(&DateStruct); M5.Rtc.SetTime(&TimeStruct);

into M5Watch.ino file, compile and load the code into M5Stick. After this the time is set into inner RTC after every start, so you have to delete these lines and recompile and load again. ---------- Původní e-mail ---------- Od: dmeylman [email protected] Komu: Happy83/M5Watch [email protected] Datum: 9. 1. 2020 2:49:43 Předmět: Re: [Happy83/M5Watch] 'M5BLEinit' was not declared in this scope (# 1) " Works...next, try to figure out how to set the time...Thanks...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub (https://github.com/Happy83/M5Watch/issues/1?email_source=notifications&email_token=ACEXBLAMRCUDUXTSK2L27QTQ4Z7DFA5CNFSM4KEDMUFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIOUIPA#issuecomment-572343356) , or unsubscribe (https://github.com/notifications/unsubscribe-auth/ACEXBLEEZNS3XXXQCATK2B3Q4Z7DFANCNFSM4KEDMUFA) . "

Happy83 avatar Jan 09 '20 06:01 Happy83

Thanks for the help. I'll try it.

dmeylman avatar Jan 11 '20 04:01 dmeylman