godstale / retrowatch Goto Github PK
View Code? Open in Web Editor NEWRetro watch is open source smart watch project using Arduino and Android.
License: Apache License 2.0
Retro watch is open source smart watch project using Arduino and Android.
License: Apache License 2.0
In file included from C:\Users\User\OneDrive\Desktop\glasses arduino\glasses arduino.ino:9:0:
C:\Users\User\OneDrive\Desktop\glasses arduino\bitmap.h:1269:43: error: variable 'bitmap_array' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM const unsigned char* bitmap_array[] = {
^
C:\Users\User\OneDrive\Desktop\glasses arduino\glasses arduino.ino: In function 'void setup()':
C:\Users\User\OneDrive\Desktop\glasses arduino\glasses arduino.ino:141:11: error: 'buttonPin' was not declared in this scope
pinMode(buttonPin, INPUT); // Defines button pin
^~~~~~~~~
C:\Users\User\OneDrive\Desktop\glasses arduino\glasses arduino.ino: In function 'void loop()':
C:\Users\User\OneDrive\Desktop\glasses arduino\glasses arduino.ino:164:18: error: 'buttonPin' was not declared in this scope
if(digitalRead(buttonPin) == LOW) isClicked = LOW;
^~~~~~~~~
exit status 1
Compilation error: variable 'bitmap_array' must be const in order to be put into read-only section by means of 'attribute((progmem))'
The app will connect to my watch and the time will display but no notifications are going through
I am using this sketch to make smart glasses, but I don't know where and how to download the app. It's not on google play store. Please help me.
there is a programming error..it says bitmap array must be const
what should i do?
when I want to upload the code 'clib/u8g.h' file error showing ..
Arduino: 1.8.19 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328P (5V, 16 MHz)"
In file included from C:\Users\SEFATF~1\AppData\Local\Temp\arduino_modified_sketch_212439\RetroWatchArduino_u8glib_no_button.ino:32:0:
bitmap.h:1269:42: error: variable 'bitmap_array' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM const unsigned char*bitmap_array[] = {
^
RetroWatchArduino_u8glib_no_button:123:32: error: variable 'weekString' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM const char* weekString[] = {"", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
^
RetroWatchArduino_u8glib_no_button:124:32: error: variable 'ampmString' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM const char* ampmString[] = {"AM", "PM"};
^
RetroWatchArduino_u8glib_no_button:161:30: error: variable 'strIntro' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM const char* strIntro[] = {"Retro", "Watch", "Arduino v1.0"};
^
exit status 1
variable 'bitmap_array' must be const in order to be put into read-only section by means of 'attribute((progmem))'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
what should i do?
I have it wired correctly and the code compiles with no errors, however it only shows the Retro-watch boot screen and never continues to the clock.
giving error. Wat should I do?
Arduino: 1.8.11 Hourly Build 2019/10/11 11:33 (Windows 10), Board: "Arduino Nano, ATmega328P"
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `cbegin':
sketch/U8glib.h:53: undefined reference to `u8g_Begin'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `firstPage':
sketch/U8glib.h:107: undefined reference to `u8g_FirstPage'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `drawStr':
sketch/U8glib.h:171: undefined reference to `u8g_DrawStr'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::drawLine(unsigned char, unsigned char, unsigned char, unsigned char)':
sketch/U8glib.h:135: undefined reference to `u8g_DrawLine'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::drawBitmapP(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char const*)':
sketch/U8glib.h:157: undefined reference to `u8g_DrawBitmapP'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFont(unsigned char const*)':
sketch/U8glib.h:166: undefined reference to `u8g_font_courB14'
sketch/U8glib.h:166: undefined reference to `u8g_font_courB14'
sketch/U8glib.h:166: undefined reference to `u8g_SetFont'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontRefHeightExtendedText()':
sketch/U8glib.h:186: undefined reference to `u8g_SetFontRefHeightExtendedText'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setDefaultForegroundColor()':
sketch/U8glib.h:124: undefined reference to `u8g_SetDefaultForegroundColor'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontPosTop()':
sketch/U8glib.h:183: undefined reference to `u8g_SetFontPosTop'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFont(unsigned char const*)':
sketch/U8glib.h:166: undefined reference to `u8g_font_fixed_v0'
sketch/U8glib.h:166: undefined reference to `u8g_font_fixed_v0'
sketch/U8glib.h:166: undefined reference to `u8g_SetFont'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontRefHeightExtendedText()':
sketch/U8glib.h:186: undefined reference to `u8g_SetFontRefHeightExtendedText'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setDefaultForegroundColor()':
sketch/U8glib.h:124: undefined reference to `u8g_SetDefaultForegroundColor'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontPosTop()':
sketch/U8glib.h:183: undefined reference to `u8g_SetFontPosTop'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::nextPage()':
sketch/U8glib.h:108: undefined reference to `u8g_NextPage'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::drawBitmapP(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char const*)':
sketch/U8glib.h:157: undefined reference to `u8g_DrawBitmapP'
sketch/U8glib.h:157: undefined reference to `u8g_DrawBitmapP'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `write':
sketch/U8glib.h:93: undefined reference to `u8g_DrawGlyph'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `global constructors keyed to 65535_0_RetroWatchArduino_u8glib_no_button.ino.cpp.o.2333':
C:\Users\ShinHC\Desktop\arduino-nightly-windows\arduino-nightly\hardware\arduino\avr\cores\arduino/wiring_digital.c:159: undefined reference to `u8g_dev_ssd1306_128x64_i2c'
C:\Users\ShinHC\Desktop\arduino-nightly-windows\arduino-nightly\hardware\arduino\avr\cores\arduino/wiring_digital.c:159: undefined reference to `u8g_dev_ssd1306_128x64_i2c'
C:\Users\ShinHC\Desktop\arduino-nightly-windows\arduino-nightly\hardware\arduino\avr\cores\arduino/wiring_digital.c:159: undefined reference to `U8GLIB::initI2C(_u8g_dev_t*, unsigned char)'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFont(unsigned char const*)':
sketch/U8glib.h:166: undefined reference to `u8g_font_courB14'
sketch/U8glib.h:166: undefined reference to `u8g_font_courB14'
sketch/U8glib.h:166: undefined reference to `u8g_SetFont'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontRefHeightExtendedText()':
sketch/U8glib.h:186: undefined reference to `u8g_SetFontRefHeightExtendedText'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setDefaultForegroundColor()':
sketch/U8glib.h:124: undefined reference to `u8g_SetDefaultForegroundColor'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontPosTop()':
sketch/U8glib.h:183: undefined reference to `u8g_SetFontPosTop'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFont(unsigned char const*)':
sketch/U8glib.h:166: undefined reference to `u8g_font_courB14'
sketch/U8glib.h:166: undefined reference to `u8g_font_courB14'
sketch/U8glib.h:166: undefined reference to `u8g_SetFont'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontRefHeightExtendedText()':
sketch/U8glib.h:186: undefined reference to `u8g_SetFontRefHeightExtendedText'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setDefaultForegroundColor()':
sketch/U8glib.h:124: undefined reference to `u8g_SetDefaultForegroundColor'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontPosTop()':
sketch/U8glib.h:183: undefined reference to `u8g_SetFontPosTop'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::nextPage()':
sketch/U8glib.h:108: undefined reference to `u8g_NextPage'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::drawCircle(unsigned char, unsigned char, unsigned char, unsigned char)':
sketch/U8glib.h:142: undefined reference to `u8g_DrawCircle'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFont(unsigned char const*)':
sketch/U8glib.h:166: undefined reference to `u8g_font_fixed_v0'
sketch/U8glib.h:166: undefined reference to `u8g_font_fixed_v0'
sketch/U8glib.h:166: undefined reference to `u8g_SetFont'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontRefHeightExtendedText()':
sketch/U8glib.h:186: undefined reference to `u8g_SetFontRefHeightExtendedText'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setDefaultForegroundColor()':
sketch/U8glib.h:124: undefined reference to `u8g_SetDefaultForegroundColor'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontPosTop()':
sketch/U8glib.h:183: undefined reference to `u8g_SetFontPosTop'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFont(unsigned char const*)':
sketch/U8glib.h:166: undefined reference to `u8g_font_courB14'
sketch/U8glib.h:166: undefined reference to `u8g_font_courB14'
sketch/U8glib.h:166: undefined reference to `u8g_SetFont'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontRefHeightExtendedText()':
sketch/U8glib.h:186: undefined reference to `u8g_SetFontRefHeightExtendedText'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setDefaultForegroundColor()':
sketch/U8glib.h:124: undefined reference to `u8g_SetDefaultForegroundColor'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontPosTop()':
sketch/U8glib.h:183: undefined reference to `u8g_SetFontPosTop'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::drawCircle(unsigned char, unsigned char, unsigned char, unsigned char)':
sketch/U8glib.h:142: undefined reference to `u8g_DrawCircle'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::drawBitmapP(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char const*)':
sketch/U8glib.h:157: undefined reference to `u8g_DrawBitmapP'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::getStrPixelWidth(char const*)':
sketch/U8glib.h:191: undefined reference to `u8g_GetStrPixelWidth'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFont(unsigned char const*)':
sketch/U8glib.h:166: undefined reference to `u8g_font_fixed_v0'
sketch/U8glib.h:166: undefined reference to `u8g_font_fixed_v0'
sketch/U8glib.h:166: undefined reference to `u8g_SetFont'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontRefHeightExtendedText()':
sketch/U8glib.h:186: undefined reference to `u8g_SetFontRefHeightExtendedText'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setDefaultForegroundColor()':
sketch/U8glib.h:124: undefined reference to `u8g_SetDefaultForegroundColor'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontPosTop()':
sketch/U8glib.h:183: undefined reference to `u8g_SetFontPosTop'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::nextPage()':
sketch/U8glib.h:108: undefined reference to `u8g_NextPage'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::drawBitmapP(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char const*)':
sketch/U8glib.h:157: undefined reference to `u8g_DrawBitmapP'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::getStrPixelWidth(char const*)':
sketch/U8glib.h:191: undefined reference to `u8g_GetStrPixelWidth'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFont(unsigned char const*)':
sketch/U8glib.h:166: undefined reference to `u8g_font_fixed_v0'
sketch/U8glib.h:166: undefined reference to `u8g_font_fixed_v0'
sketch/U8glib.h:166: undefined reference to `u8g_SetFont'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontRefHeightExtendedText()':
sketch/U8glib.h:186: undefined reference to `u8g_SetFontRefHeightExtendedText'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setDefaultForegroundColor()':
sketch/U8glib.h:124: undefined reference to `u8g_SetDefaultForegroundColor'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontPosTop()':
sketch/U8glib.h:183: undefined reference to `u8g_SetFontPosTop'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::nextPage()':
sketch/U8glib.h:108: undefined reference to `u8g_NextPage'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFont(unsigned char const*)':
sketch/U8glib.h:166: undefined reference to `u8g_font_courB14'
sketch/U8glib.h:166: undefined reference to `u8g_font_courB14'
sketch/U8glib.h:166: undefined reference to `u8g_SetFont'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontRefHeightExtendedText()':
sketch/U8glib.h:186: undefined reference to `u8g_SetFontRefHeightExtendedText'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setDefaultForegroundColor()':
sketch/U8glib.h:124: undefined reference to `u8g_SetDefaultForegroundColor'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::setFontPosTop()':
sketch/U8glib.h:183: undefined reference to `u8g_SetFontPosTop'
C:\Users\ShinHC\AppData\Local\Temp\ccuFUZlq.ltrans0.ltrans.o: In function `U8GLIB::nextPage()':
sketch/U8glib.h:108: undefined reference to `u8g_NextPage'
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "SoftwareSerial.h"
Used: C:\Users\ShinHC\Desktop\arduino-nightly-windows\arduino-nightly\hardware\arduino\avr\libraries\SoftwareSerial
exit status 1
Error compiling for board Arduino Nano.
Can someone share APK file here? I am facing building it on Android Studio.
Thanks a ton!
Need to change lines such as PROGMEM const char* weekString[]
to PROGMEM const char* const weekString[]
, otherwise, it'll report errors like:
error: variable 'weekString' must be const in order to be put into read-only section by means of 'attribute((progmem))'
bitmap.h:1269: error: variable 'bitmap_array' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM const unsigned char* bitmap_array[] = {
^
I have successfully completed the project but when I plug it in it sets itself to 00:00 Sunday analog mode. The time doesn't get corrected, no notifications are sent and I can't change the mode. Despite this the phone claims that it is connected to the device. the Bluetooth device has it's LED lit and looks like it is working. I am using RetroWatchArduino_u8glib_no_button.
I use RetroWachArduino_u8glib_no_button and got this compiler error:
variable 'bitmap_array' must be const in order to be put into read-only section by means of 'attribute((progmem))'
i need Help pleas
Why can't I open the source code of the application in Android Studio and Intellij Idea?
Can you provide a new link to the application files?
I want to tweak some things.
Sorry for my English
I had done everything and then was shocked because the app didn't work although Bluetooth was successfully connected. No data is sent to the watch. What can I do now😢? Is there any apps which can be used instead?
On uno it is not uploading properly
At first, my button (which I have made sure is working) had no response after I had uploaded the data from my android. I changed the values of isClicked thinking that was the issue but after I had made about 3 or 4 changes the only thing I could get it to do was cycle through the notifications, with no response from the button. I have a message on the Arduino IDE that low memory could be causing stability issues, perhaps that is the issue?
When i open the code provided in github and compile it, it give like 50 different errors saying things aren't defined. Am i doing something wrong
bitmap.h:1269: error: variable 'bitmap_array' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM const unsigned char* bitmap_array[] = {
^
Upon uploading the code, I get an error. Sorry in advance for the long copy and paste, but here's the message.
`
Arduino: 1.8.1 (Windows 10), Board: "Arduino/Genuino Uno"
In file included from C:\Users\TJ\Desktop\retrowatch-master\RetroWatch_Arduino\RetroWatchArduino_u8glib_no_button\RetroWatchArduino_u8glib_no_button.ino:32:0:
bitmap.h:1269: error: variable 'bitmap_array' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM const unsigned char* bitmap_array[] = {
^
RetroWatchArduino_u8glib_no_button:123: error: variable 'weekString' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM const char* weekString[] = {"", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
^
RetroWatchArduino_u8glib_no_button:124: error: variable 'ampmString' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM const char* ampmString[] = {"AM", "PM"};
^
RetroWatchArduino_u8glib_no_button:161: error: variable 'strIntro' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM const char* strIntro[] = {"Retro", "Watch", "Arduino v1.0"};
^
exit status 1
variable 'bitmap_array' must be const in order to be put into read-only section by means of 'attribute((progmem))'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
`
Could you make a "The Division" Version?
contineuosly getting error compiling project in Arduino.
in drawmassage ,drawemergency,draw icon function
icon_array_size not declared
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.